org.pietschy.command
Class CompoundCommand
- ActionCommandExecutor
public class CompoundCommand
An
ActionCommand that executes a number of sub-commands. Commands are executed
in the order they were added.
addCommandListener, addInterceptor, areEqual, attach, configureButtonStates, detach, execute, execute, getActionAdapter, getActionAdapter, getActionCommand, getActionEvent, getHint, getHint, getHints, getInvoker, getInvokerWindow, getModifiers, handleExecute, installShortCut, installShortCut, postExecute, preExecute, putHint, putHints, removeCommandListener, removeInterceptor, requestDefautIn, setActionCommand, uninstallShortCut, uninstallShortCut |
addFace, addHoverListener, addNewFace, addNotify, addPropertyChangeListener, addPropertyChangeListener, attach, buttonIterator, configureButtonAppearance, configureButtonAppearances, configureButtonAppearances, configureButtonStates, createButton, createButton, createButton, createButton, createMenuItem, createMenuItem, createMenuItem, createMenuItem, detach, export, faceExists, fireHoverEnded, fireHoverStarted, getAccelerator, getAlternativeFaceNames, getButtonFactory, getButtonIn, getCommandManager, getDefaultFace, getDefaultFace, getDescription, getFace, getFace, getIcon, getId, getLongDescription, getMenuFactory, getMnemonic, getMnemonicIndex, getProperty, getProperty, getPropertyNames, getSelectedIcon, getText, getTextPosition, getToolbarFactory, initCommandManager, installFace, isAnonymous, isAttachedTo, isEnabled, isVisible, putProperty, removeHoverListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, requestFocusIn, setAccelerator, setButtonFactory, setDescription, setEnabled, setIcon, setLongDescription, setMenuFactory, setMnemonic, setMnemonicIndex, setSelectedIcon, setText, setTextPosition, setToolbarFactory, setVisible, toString |
CompoundCommand
public CompoundCommand()
Creates a new anonymous CompoundCommand. Anonymous commands must be fully programatically
created and can't be added a
CommandManager.
CompoundCommand
public CompoundCommand(String commandId)
Creates a new command with the specified Id.
CompoundCommand
public CompoundCommand(CommandManager commandManager,
String commandId) Constructs a new Command object with the specified Id.
addCommand
public void addCommand(ActionCommand cmd)
cmd - the command to installFace.
handleExecute
public void handleExecute()
Executes all the sub commands. The command are executed in the order of addition.
- handleExecute in interface ActionCommand
removeCommand
public void removeCommand(ActionCommand cmd)
cmd - the command to remove.