fi.hut.tml.xsmiles.ecma
Class ComponentMouseAdapter

java.lang.Object
  extended byjava.awt.event.MouseAdapter
      extended byfi.hut.tml.xsmiles.ecma.ComponentMouseAdapter
All Implemented Interfaces:
java.util.EventListener, java.awt.event.MouseListener

public class ComponentMouseAdapter
extends java.awt.event.MouseAdapter

!This class is not ready yet!

The idea of this class is to add an instance of it to each component. The instance would notice if something happens on component and call ESEventBroker if something should do.


Constructor Summary
ComponentMouseAdapter(org.w3c.dom.Element ele, java.awt.Component component, ESEventBroker broker)
          A constructor
 
Method Summary
 boolean addEvent(java.lang.String eventType, java.lang.String ecmacode)
          Normally events will be added by the constructor, but if a developer wants to add some extra events this method can be used.
 void mouseClicked(java.awt.event.MouseEvent event)
           
 void mouseEntered(java.awt.event.MouseEvent event)
           
 void mouseExited(java.awt.event.MouseEvent event)
           
 void mousePressed(java.awt.event.MouseEvent event)
           
 void mouseReleased(java.awt.event.MouseEvent event)
           
 void setESEventBroker(ESEventBroker ecmabroker)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentMouseAdapter

public ComponentMouseAdapter(org.w3c.dom.Element ele,
                             java.awt.Component component,
                             ESEventBroker broker)
A constructor

Parameters:
ele - The element of dom-tree to which this ElementMouseAdapter will be added
component - The component that is observed by this ElementMouseAdapter
broker - ESEventbroker is called when something should be done
Method Detail

addEvent

public boolean addEvent(java.lang.String eventType,
                        java.lang.String ecmacode)
Normally events will be added by the constructor, but if a developer wants to add some extra events this method can be used.

Parameters:
eventType - one of "onFocus", "onClick", "onMouseOver" or "onMouseout"

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent event)

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent event)

mouseExited

public void mouseExited(java.awt.event.MouseEvent event)

mousePressed

public void mousePressed(java.awt.event.MouseEvent event)

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent event)

setESEventBroker

public void setESEventBroker(ESEventBroker ecmabroker)


X-Smiles 1.2