|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.util.swing.action.DummyCommand
public class DummyCommand
A null command used to instantiate actions from the action factory when no command string for this action is provided in the properties file.
Constructor Summary | |
---|---|
DummyCommand()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DummyCommand()
Method Detail |
---|
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 command
true
- 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 command
true
- 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |