|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.algosome.common.util.ActionDelegate
public class ActionDelegate
Delegates actions to the appropriate listeners. This class also keeps internally a ChangeManager so that when action are performed they are added to the manager so they can be undone.
Constructor Summary | |
---|---|
ActionDelegate()
Creates a new ActionDelegate. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Implementation of the ActionListener interface. |
void |
addAction(java.lang.String key,
java.awt.event.ActionListener listener)
Adds an action to this object. |
java.util.Collection<java.lang.String> |
getActionCommands()
Retrieves |
boolean |
hasAction(java.lang.String actionCommand)
Determines if the parameter action command has an action |
boolean |
removeAction(java.lang.String key,
java.awt.event.ActionListener listener)
Removes the parameter action specified by the string key. |
void |
removeAllActionsFor(java.lang.String actionCommand)
Removes all actions for the parameter action command |
void |
setRecorder(Recorder recorder)
Sets a recorder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionDelegate()
Method Detail |
---|
public void setRecorder(Recorder recorder)
recorder
- public java.util.Collection<java.lang.String> getActionCommands()
public void addAction(java.lang.String key, java.awt.event.ActionListener listener)
key
- listener
- public boolean removeAction(java.lang.String key, java.awt.event.ActionListener listener)
key
- The key which defines the actionlistener
- The listener to remove.
public void removeAllActionsFor(java.lang.String actionCommand)
key
- public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public boolean hasAction(java.lang.String actionCommand)
actionCommand
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |