|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pietschy.command.Command
org.pietschy.command.ActionCommand
org.pietschy.command.CompoundCommand
public class CompoundCommand
An ActionCommand
that executes a number of sub-commands. Commands are executed
in the order they were added.
addCommand(org.pietschy.command.ActionCommand)
,
removeCommand(org.pietschy.command.ActionCommand)
Field Summary |
---|
Fields inherited from class org.pietschy.command.ActionCommand |
---|
HINT_ACTION_EVENT, HINT_INVOKER, HINT_INVOKER_WINDOW, HINT_MODIFIERS |
Fields inherited from class org.pietschy.command.Command |
---|
internalLog, listenerList, pcs |
Constructor Summary | |
---|---|
CompoundCommand()
Creates a new anonymous CompoundCommand. |
|
CompoundCommand(CommandManager commandManager,
java.lang.String commandId)
|
|
CompoundCommand(java.lang.String commandId)
Creates a new command with the specified Id. |
Method Summary | |
---|---|
void |
addCommand(ActionCommand cmd)
Adds an ActionCommand to the end of the command list. |
void |
handleExecute()
Executes all the sub commands. |
void |
removeCommand(ActionCommand cmd)
Removes the ActionCommand from the the command list. |
Methods inherited from class org.pietschy.command.ActionCommand |
---|
addCommandListener, addInterceptor, areEqual, attach, configureButtonStates, detach, execute, execute, getActionAdapter, getActionAdapter, getActionCommand, getActionEvent, getHint, getHint, getHints, getInvoker, getInvokerWindow, getModifiers, installShortCut, installShortCut, postExecute, preExecute, putHint, putHints, removeCommandListener, removeInterceptor, requestDefautIn, setActionCommand, uninstallShortCut, uninstallShortCut |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.pietschy.command.ActionCommandExecutor |
---|
addPropertyChangeListener, addPropertyChangeListener, isEnabled, removePropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
---|
public CompoundCommand(CommandManager commandManager, java.lang.String commandId)
public CompoundCommand(java.lang.String commandId)
commandId
- public CompoundCommand()
CommandManager
.
ActionCommand
Method Detail |
---|
public void handleExecute()
handleExecute
in class ActionCommand
public void addCommand(ActionCommand cmd)
ActionCommand
to the end of the command list.
cmd
- the command to installFace.public void removeCommand(ActionCommand cmd)
ActionCommand
from the the command list.
cmd
- the command to remove.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |