public class ActionSet extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,Action> |
actions
This holds the individual actions.
|
protected Action |
defaultAction |
| Constructor and Description |
|---|
ActionSet()
Creates an set for actions
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(Action action)
Adds an action to the set
|
boolean |
exists(int actionCode)
Looks if an Action for code is in this set.
|
Action |
get(int actionCode)
Looks up the corresponding action for an action code.
|
protected Action defaultAction
public void addAction(Action action)
action - to be addedpublic Action get(int actionCode)
actionCode - code to be looked forpublic boolean exists(int actionCode)
actionCode - code to be looked forCopyright © 2016. All rights reserved.