tomp.ext.cmd
Class GenericAction
java.lang.Object
|
+--tomp.ext.Action
|
+--tomp.ext.cmd.GenericAction
- public class GenericAction
- extends Action
GenericAction extends Action, acting as a "normal" basic action, for example in command-line applications.
Constructor Summary |
GenericAction(Action previous)
This constructor is used when there is a previous Action that must be non-null. |
GenericAction(Application app)
This constructor is used when there is no previous Action. |
Method Summary |
java.lang.Object |
getHere(java.lang.String s)
The objects are stored at this action's HashMap and returned on demand, specified by the key. |
void |
put(java.lang.String s,
java.lang.Object o)
The objects are stored at this action's HashMap |
Methods inherited from class tomp.ext.Action |
event2tree, execute, get, getApplication, getPreviousAction, hasParameter, id, init, isERROR, isOK, result, setParameter, setResult, trace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericAction
public GenericAction(Application app)
- This constructor is used when there is no previous Action. Then, the application app must be provided and non-null.
- Parameters:
app
- the parent application
GenericAction
public GenericAction(Action previous)
- This constructor is used when there is a previous Action that must be non-null.
put
public void put(java.lang.String s,
java.lang.Object o)
- The objects are stored at this action's HashMap
- Specified by:
put
in class Action
- Parameters:
s
- keyo
- object
getHere
public java.lang.Object getHere(java.lang.String s)
- The objects are stored at this action's HashMap and returned on demand, specified by the key.
- Specified by:
getHere
in class Action
- Parameters:
s
- key