org.jagatoo.commands
Interface NoParamCommand
- All Superinterfaces:
- Command
- All Known Implementing Classes:
- InputActionCommand, NoParamCommandBase
public interface NoParamCommand
- extends Command
This abstract base class for the Command interface correctly overrides
the hashCode() and equals(Object) methods.
This implementation is especially menat for Commands without any
parameters.
|
Method Summary |
java.lang.String |
execute(java.lang.Boolean inputInfo)
Executes this command. |
execute
java.lang.String execute(java.lang.Boolean inputInfo)
throws CommandException
- Executes this command.
If a CommandException is thrown, then only its info text is displayed.
- Parameters:
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.
- Returns:
- this command's result if successful.
Used to give the user a textual response to the command execution.
May be null for simple commands.
- Throws:
CommandException