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

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.ibm.as400.ui.framework.java.ActionHandler
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
ClFieldCopyMenuHandler, ClFieldCutMenuHandler, ClFieldDeleteMenuHandler, ClFieldHelpMenuHandler, ClFieldPasteMenuHandler, ClFieldSelectAllMenuHandler, ClMainEditCopyMenuHandler, ClMainEditCutMenuHandler, ClMainEditDeleteMenuHandler, ClMainEditPasteMenuHandler, ClMainEditSelectAllMenuHandler, ClMenuActionHandler, ContextButtonHelpHandler, DefaultMenuAction

public abstract class ActionHandler
extends 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
Version:
1.0, 04/15/98
Author:
D. Petty
See Also:
MenuManager, Serialized Form

Field Summary
Modifier and Type Field and Description
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, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
Constructor and Description
ActionHandler(MenuManager mm)
          Constructs an ActionHandler.
 
Method Summary
Modifier and Type Method and Description
 String toString()
          Returns a string representation of this object.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

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 String toString()
Returns a string representation of this object.

Overrides:
toString in class Object
Returns:
this object as a string
Since:
v4r2m0