|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.amattioli.applicate.commands.MultipleCommand
public abstract class MultipleCommand
Un command ch epuò eseguire una sequenza di altri command. I command da eseguire vengono aggiunti tramite il metodo addCommand(). Quando viene richiamato il metodo doCommand() i command verranno eseguiti nell'ordine in cui sono stati aggiunti.
| Constructor Summary | |
|---|---|
MultipleCommand()
|
|
MultipleCommand(int capacity)
Crea un command multiplo con capacità iniziale pari al numero indicato dal parametro. |
|
| Method Summary | |
|---|---|
void |
addCommand(Command c)
|
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface it.amattioli.dominate.util.PropertyChangeEmitter |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Constructor Detail |
|---|
public MultipleCommand()
public MultipleCommand(int capacity)
capacity - | Method Detail |
|---|
public void addCommand(Command c)
public void doCommand()
throws ApplicationException
Command
doCommand in interface CommandApplicationExceptionpublic void cancelCommand()
cancelCommand in interface Commandpublic void addCommandListener(CommandListener listener)
CommandCommandEvent the CommandListener.commandDone(CommandEvent)
method will be called on all the added listeners.
addCommandListener in interface Commandlistener - the listener to be added
public void addCommandListener(CommandListener listener,
CommandResult... results)
CommandCommandEvent the CommandListener.commandDone(CommandEvent)
method will be called on all the added listeners with result equals to one
of the specified results.
addCommandListener in interface Commandlistener - the listener to be added
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||