com.ibm.as400.ui.framework.java
Class ActionHandler

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--com.ibm.as400.ui.framework.java.ActionHandler
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public abstract class ActionHandler
extends javax.swing.AbstractAction

The abstract base class for user-defined handler classes which handle menu events generated by the UI framework. The base class provides a valid reference to the MenuManager object for the menu that is generating the events.

Since:
v4r5m0
See Also:
MenuManager, Serialized Form

Field Summary
protected  MenuManager menuManager
          The MenuManager instance which is managing the currently active menu.
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ActionHandler(MenuManager mm)
          Constructs an ActionHandler.
 
Method Summary
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class javax.swing.AbstractAction
actionPerformed, addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

menuManager

protected MenuManager menuManager
The MenuManager instance which is managing the currently active menu. This object will be called to handle events generated by this panel.
See Also:
MenuManager
Constructor Detail

ActionHandler

public ActionHandler(MenuManager mm)
Constructs an ActionHandler. Subclasses must override, as follows:
 public <handler_class_name>(MenuManager pm) { super(pm); }
 
Parameters:
pm - the MenuManager for the currently active menu
Since:
v4r2m0
See Also:
MenuManager
Method Detail

toString

public java.lang.String toString()
Returns a string representation of this object.
Overrides:
toString in class java.lang.Object
Returns:
this object as a string
Since:
v4r2m0