IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.desktop
Class DesktopActionListener

java.lang.Object
  extended bycom.ibm.dse.desktop.DesktopActionListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.awt.event.MouseListener

public class DesktopActionListener
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.MouseListener

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

DesktopActionListener

public DesktopActionListener()
This constructor creates a DesktopActionListener object.


DesktopActionListener

public DesktopActionListener(java.lang.String aMethodCode)
This constructor creates a DesktopActionListener object.


DesktopActionListener

public DesktopActionListener(java.lang.String aMethodName,
                             java.lang.String aParamString)
This constructor creates a DesktopActionListener object.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Invoked when an action occurs.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - java.awt.event.ActionEvent

handleEvent

public void handleEvent(java.awt.AWTEvent e)
Handles an event according to an externalized Java script defined in the desktop XML file.

Parameters:
e - AWTEvent

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse has been clicked on a component.

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Parameters:
e - MouseEvent

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component.

Specified by:
mouseEntered in interface java.awt.event.MouseListener
Parameters:
e - MouseEvent

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component.

Specified by:
mouseExited in interface java.awt.event.MouseListener
Parameters:
e - MouseEvent

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Parameters:
e - MouseEvent

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Parameters:
e - MouseEvent

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005