|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Command
An interface for a command to be processed.
| Method Summary | |
|---|---|
java.lang.Object[] |
createParametersArray(java.util.ArrayList<java.lang.String> parameters)
Creates a parameters array for the given command line. |
java.lang.String |
execute(java.lang.Boolean inputInfo,
CommandLine commandLine)
Executes this command. |
java.lang.String |
execute(java.lang.Boolean inputInfo,
java.lang.Object[] parameters)
Executes this command. |
java.lang.String |
execute(CommandLine commandLine)
Executes this command. |
java.lang.String |
execute(java.lang.Object[] parameters)
Executes this command. |
java.lang.String |
getKey()
|
java.lang.String |
getLocalizedText()
|
int |
getNumParameters()
|
java.lang.String[] |
getParameterTypes()
|
java.lang.String |
getText()
|
| Method Detail |
|---|
java.lang.String getKey()
java.lang.String getText()
Command.getLocalizedText()java.lang.String getLocalizedText()
Command.
You should prefer this method over getText().int getNumParameters()
java.lang.String[] getParameterTypes()
java.lang.Object[] createParametersArray(java.util.ArrayList<java.lang.String> parameters)
java.lang.String execute(java.lang.Boolean inputInfo,
java.lang.Object[] parameters)
throws CommandException
inputInfo - this Boolean is true for a key-down or wheel-up and false for a key-up or wheel-down.
The Command implementation must be aware of the fact, that this Boolean can be null.parameters - the command's parameters
CommandException
java.lang.String execute(java.lang.Object[] parameters)
throws CommandException
parameters - the command's parameters
CommandException
java.lang.Throwable
java.lang.String execute(java.lang.Boolean inputInfo,
CommandLine commandLine)
throws CommandException
inputInfo - this Boolean is true for a key-down or wheel-up and false for a key-up or wheel-down.
The Command implementation must be aware of the fact, that this Boolean can be null.commandLine - the CommandLine to extract the parameters array from
CommandException
java.lang.String execute(CommandLine commandLine)
throws CommandException
commandLine - the CommandLine to extract the parameters array from
CommandException
java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||