|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.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)
java.lang.String
- aMethodCodepublic DesktopActionListener(java.lang.String aMethodName, java.lang.String aParamString)
java.lang.String
- aMethodNamejava.lang.String
- aParamStringMethod Detail |
public void actionPerformed(java.awt.event.ActionEvent e)
e
- java.awt.event.ActionEventpublic void handleEvent(java.awt.AWTEvent e)
e
- AWTEventpublic void mouseClicked(java.awt.event.MouseEvent e)
e
- MouseEventpublic void mouseEntered(java.awt.event.MouseEvent e)
e
- MouseEventpublic void mouseExited(java.awt.event.MouseEvent e)
e
- MouseEventpublic void mousePressed(java.awt.event.MouseEvent e)
e
- MouseEventpublic void mouseReleased(java.awt.event.MouseEvent e)
e
- MouseEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |