com.sshtools.ui.awt
Class AbstractAction
java.lang.Object
com.sshtools.ui.awt.AbstractAction
- All Implemented Interfaces:
- Action, java.awt.event.ActionListener, java.util.EventListener
- public abstract class AbstractAction
- extends java.lang.Object
- implements Action
Abstract implementation of an Action.
|
Constructor Summary |
AbstractAction(java.lang.String name)
Construct a new action with a name. |
|
Method Summary |
java.lang.String |
getName()
Return the name of the action. |
java.lang.Object |
getValue(java.lang.String key)
Get the value for an attribute. |
void |
putValue(java.lang.String key,
java.lang.Object value)
Actions can have any number of attributes, each referenced by a
key (a string). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.awt.event.ActionListener |
actionPerformed |
AbstractAction
public AbstractAction(java.lang.String name)
- Construct a new action with a name.
- Parameters:
name -
getName
public java.lang.String getName()
- Description copied from interface:
Action
- Return the name of the action. Same as doing
AppAction.getValue
using a key of AppAction.NAME.
- Specified by:
getName in interface Action
- Returns:
- action name
putValue
public void putValue(java.lang.String key,
java.lang.Object value)
- Description copied from interface:
Action
- Actions can have any number of attributes, each referenced by a
key (a string).
- Specified by:
putValue in interface Action
- Parameters:
key - keyvalue - value
getValue
public java.lang.Object getValue(java.lang.String key)
- Get the value for an attribute.
null will be returned
if no such attribute can be found.
- Specified by:
getValue in interface Action
- Parameters:
key - attribute key
- Returns:
- attribute value
Copyright © 2003-2004 3SP LTD. All Rights Reserved.