|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Command
A command is a way to encapsulate an operation in an object. You can create a command
object, set the operation parameters passing them to the constructor or using properties
accessor methods, and then execute the operation calling doCommand().
Every time a command is executed a CommandEvent should be fired. Other objects can
listen to these events adding a CommandListener to this command using
addCommandListener(CommandListener) or addCommandListener(CommandListener, CommandResult...).
| Method Summary | |
|---|---|
void |
addCommandListener(CommandListener listener)
Add a listener for this command events. |
void |
addCommandListener(CommandListener listener,
CommandResult... results)
Add a listener for this command events. |
void |
cancelCommand()
|
void |
doCommand()
Execute this command. |
| Methods inherited from interface it.amattioli.dominate.util.PropertyChangeEmitter |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Method Detail |
|---|
void doCommand()
throws ApplicationException
ApplicationExceptionvoid cancelCommand()
void addCommandListener(CommandListener listener)
CommandEvent the CommandListener.commandDone(CommandEvent)
method will be called on all the added listeners.
listener - the listener to be added
void addCommandListener(CommandListener listener,
CommandResult... results)
CommandEvent the CommandListener.commandDone(CommandEvent)
method will be called on all the added listeners with result equals to one
of the specified results.
listener - the listener to be added
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||