de.kosi.gui.action
Class CRelayedAction
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--de.kosi.gui.action.CAction
|
+--de.kosi.gui.action.CRelayedAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, ResourceBundleChangeListener, java.io.Serializable
- public class CRelayedAction
- extends CAction
A relayed action is an action, that does not provide an implementation
of the actionPerformed() method itself, but delegates the call to the
currently active action. The currently active action is an action, that
is set by a call to setActions(Action[] actions). If the action array
contains a action, whos name is the same as the relayToAction property
of this class, the action becomes the active Action, otherwise the relayed
action is disabled.
ChangeLog:
$Log: CRelayedAction.java,v $
Revision 1.4 2001/08/28 11:18:45 madmanmoon
CRelayedAction takes all properties of the relayed action.
Revision 1.3 2001/06/27 19:09:18 jiriki
Resolved minor bugs. Updated docs.
Revision 1.2 2001/06/22 13:24:32 jiriki
Implemented kicking
Revision 1.1 2001/05/30 10:28:05 jiriki
Refactored client
Revision 1.2 2001/05/22 16:05:24 jiriki
Made files more compliant to Coding Conventions.
Revision 1.1.1.1 2001/04/29 18:05:15 jiriki
Imported sources from zola.
Revision 1.1 2001/04/24 23:19:22 wombat
- Implemented I18N features of server
- Implemented actions for Admin Client
- Other changes is AdminClient
- Version:
- $Revision: 1.4 $ ($Date: 2001/08/28 11:18:45 $)
- Author:
- Niklas Mehner
- See Also:
- Serialized Form
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 |
CRelayedAction(java.lang.String relayToAction)
Create a new relayed action. |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Action performed. |
void |
setActions(javax.swing.ActionMap actions)
Set the currently available actions.
|
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CRelayedAction
public CRelayedAction(java.lang.String relayToAction)
- Create a new relayed action.
- Parameters:
relayToAction
- Name of actions, this action can relay to.
setActions
public void setActions(javax.swing.ActionMap actions)
- Set the currently available actions.
If actions contains a action whos name matches the relayToAction
property, this action becomes the active action. Otherwise this action
is disabled.
- Parameters:
actions
- Array of actions.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Action performed. This method is relayed to the currently active action.
- Overrides:
actionPerformed
in class javax.swing.AbstractAction
- Parameters:
e
- Event that is relayed.