|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Command
Basic interface for all commands.
Method Summary | |
---|---|
boolean |
canExecute(Collection<Object> args)
Permission checking for a command works as follows: 1. |
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. |
Method Detail |
---|
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 command
true
- executable with these arguments,false
- impossible to execute this command with these argumentsboolean isSelected(Collection<Object> args)
args
- arguments for the command
true
- selected with these arguments,false
- not selected with these argumentsboolean isAvailable()
true
- available false
- not available
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2017 levigo holding gmbh. All rights reserved. |