All Packages Class Hierarchy This Package Previous Next Index
Class tea.awt.event.ActionManager
java.lang.Object
|
+----tea.awt.event.ActionManager
- public class ActionManager
- extends Object
- implements ActionListener
This is a class that listens to the actions of a huge number of
components, retrieves the associated ActionListener and dispatches the
action event to it. Could be useful when an ActionListener listens
to a large number of ActionEvents.
- Version:
- 1.0 beta - 31 May 1997
- Author:
- Leonardo Boselli
-
ActionManager()
-
-
actionPerformed(ActionEvent)
- Implements the ActionListener interface.
-
actions()
- Returns an Enumeration of the registered actionCommands.
-
addActionListener(String, ActionListener)
- Adds an ActionListener associated with the specified command.
-
dropDefaultActionListener()
- Drops the default ActionListener.
-
removeActionListener(String)
- Removes the ActionListener associated with the specified command.
-
setDefaultActionListener(ActionListener)
- Defines the default ActionListener to be called when the actionCommand
is not registered.
ActionManager
public ActionManager()
setDefaultActionListener
public void setDefaultActionListener(ActionListener al)
- Defines the default ActionListener to be called when the actionCommand
is not registered.
- Parameters:
- al - the ActionListener.
dropDefaultActionListener
public void dropDefaultActionListener()
- Drops the default ActionListener.
addActionListener
public void addActionListener(String cmd,
ActionListener al)
- Adds an ActionListener associated with the specified command.
- Parameters:
- cmd - the actionCommand.
- al - the ActionListener.
removeActionListener
public void removeActionListener(String cmd)
- Removes the ActionListener associated with the specified command.
- Parameters:
- cmd - the actionCommand.
actions
public Enumeration actions()
- Returns an Enumeration of the registered actionCommands.
- Returns:
- the actionCommands (as an Enumeration).
actionPerformed
public void actionPerformed(ActionEvent ae)
- Implements the ActionListener interface. Takes the ActionEvent and
dispatches it to the corresponding ActionListener.
- Parameters:
- ae - the ActionEvent.
All Packages Class Hierarchy This Package Previous Next Index