public interface Command
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.
|
void execute(Collection<Object> args)
args
- arguments for the command (contains all items for all actions inside of the
context!)boolean canExecute(Collection<Object> args)
1. Check user privileges if the command is executable.
2. Ask if the command is executable with the given objects.
args
- arguments for the commandtrue
- executable with these arguments,false
- impossible to execute this command with these argumentsboolean isSelected(Collection<Object> args)
args
- arguments for the commandtrue
- selected with these arguments,false
- not selected with these argumentsboolean isAvailable()
true
- available false
- not availableCopyright © 2024 levigo holding gmbh. All rights reserved.