Constructor and Description |
---|
DummyCommand() |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute(Collection<Object> args)
Permission checking for a command works as follows:
|
void |
execute(Collection<Object> args)
Execute the command.
|
boolean |
isAvailable()
Returns an indicator whether the command is available and therefore integrable.
|
boolean |
isSelected(Collection<Object> args)
Returns the selected state of this command.
|
public void execute(Collection<Object> args)
Command
execute
in interface Command
args
- arguments for the command (contains all items for all actions inside of the
context!)Command.execute(java.util.Collection)
public boolean canExecute(Collection<Object> args)
Command
1. Check user privileges if the command is executable.
2. Ask if the command is executable with the given objects.
canExecute
in interface Command
args
- arguments for the commandtrue
- executable with these arguments,false
- impossible to execute this command with these argumentsCommand.canExecute(java.util.Collection)
public boolean isSelected(Collection<Object> args)
Command
isSelected
in interface Command
args
- arguments for the commandtrue
- selected with these arguments,false
- not selected with these argumentsCommand.isSelected(Collection)
public boolean isAvailable()
Command
isAvailable
in interface Command
true
- available false
- not availableCommand.isAvailable()
Copyright © 2024 levigo holding gmbh. All rights reserved.