public class WizardCommand extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static short |
ADD_ITEM |
static short |
CANCEL |
static short |
COMMIT |
static short |
DELETE_ITEM |
static short |
GOTO_FORM |
static short |
MOVE_DOWN |
static short |
MOVE_UP |
static short |
SAVE |
static short |
START_WIZARD |
static short |
UNKNOWN_COMMAND |
static short |
UPDATE_ITEM |
| Constructor and Description |
|---|
WizardCommand(String acommand,
String avalue)
Creates a wizard command object with the given command and value.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDid()
Returns the 'did' (data id) parameter of the parsed command.
|
String |
getFid()
Returns the 'fid' (field id) parameter of the parsed command.
|
String |
getParameter(int i)
Returns the parameter with the indicated index of the parsed command.
|
int |
getType()
Returns the type of the parsed command.
|
String |
getValue()
Returns the value passed to the parsed command.
|
String |
toString() |
public static final short UNKNOWN_COMMAND
public static final short ADD_ITEM
public static final short CANCEL
public static final short COMMIT
public static final short DELETE_ITEM
public static final short GOTO_FORM
public static final short MOVE_DOWN
public static final short MOVE_UP
public static final short SAVE
public static final short START_WIZARD
public static final short UPDATE_ITEM
public WizardCommand(String acommand, String avalue)
cmd/type/fid/did/otherdid/
'type' is the command itself (i.e. 'add-item'), fid, did, and otherdid are possible
parameters to the command.acommand - The full commandavalue - The value of the commandpublic int getType()
public String getValue()
public String getParameter(int i)
public String getFid()
public String getDid()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}