|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.dse.desktop.DesktopActionListener
The DesktopActionListener class is an implementation of the ActionListener interface that receives action events and of the MouseListener interface that receives mouse events.
This implementation processes an action event and a mouse event. The object created with this class is registered with a component, using the component's addActionListener method (when the action event occurs, that object's actionPerformed method is invoked) or using the component's addMouseListener method (when a mouse event occurs, the relevant method in the listener object is invoked, and the MouseEvent is passed to it). The invoked listener methods process a Java script code that is externalized in the desktop XML definition of the component.
Constructor Summary | |
---|---|
DesktopActionListener()
This constructor creates a DesktopActionListener object. |
|
DesktopActionListener(java.lang.String aMethodCode)
This constructor creates a DesktopActionListener object. |
|
DesktopActionListener(java.lang.String aMethodName,
java.lang.String aParamString)
This constructor creates a DesktopActionListener object. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Invoked when an action occurs. |
void |
handleEvent(java.awt.AWTEvent e)
Handles an event according to an externalized Java script defined in the desktop XML file. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse has been clicked on a component. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component. |
void |
mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component. |
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DesktopActionListener()
public DesktopActionListener(java.lang.String aMethodCode)
public DesktopActionListener(java.lang.String aMethodName, java.lang.String aParamString)
Method Detail |
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- java.awt.event.ActionEventpublic void handleEvent(java.awt.AWTEvent e)
e
- AWTEventpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
e
- MouseEventpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
e
- MouseEventpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
e
- MouseEventpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
e
- MouseEventpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
e
- MouseEvent
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |