public class ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommandActionDelegate extends ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommand implements CommandActionDelegate
ResultAndAffectedObjectsWrappingCommandActionDelegate wraps another command that also implements
CommandActionDelegate, to substitute IWrapperItemProviders for its values, which have been
unwrapped for the command to operate on properly. This substitution is performed exactly as by a
ResultAndAffectedObjectsWrappingComand, and action delegate methods are delegated directly to the
wrapped command.AbstractCommand.NonDirtyingadditionalWrappers, ownerscommanddescription, isExecutable, isPrepared, label| Constructor and Description |
|---|
ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommandActionDelegate(CommandActionDelegate command)
Returns a new
ResultAndAffectedObjectsWrappingCommandActionDelegate for the given command. |
ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommandActionDelegate(CommandActionDelegate command,
java.util.Collection<? extends IWrapperItemProvider> additionalWrappers)
Returns a new
ResultAndAffectedObjectsWrappingCommandActionDelegate for the given command and list
of additional wrappers. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Delegates to the getDescription method of the command.
|
java.lang.Object |
getImage()
This returns the decoration, if any, of the action.
|
java.lang.String |
getText()
This returns the menu text, if any, of the action.
|
java.lang.String |
getToolTipText()
This returns the tool tip text, if any, of the action.
|
addOwners, getAffectedObjects, getOwners, getResult, wrapValuescanUndo, createCommand, dispose, execute, getCommand, getLabel, prepare, redo, toString, undocanExecute, chain, setDescription, setLabelclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanExecutepublic ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommandActionDelegate(CommandActionDelegate command)
ResultAndAffectedObjectsWrappingCommandActionDelegate for the given command.java.lang.ClassCastException - If the specified command does not implement Command.public ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommandActionDelegate(CommandActionDelegate command, java.util.Collection<? extends IWrapperItemProvider> additionalWrappers)
ResultAndAffectedObjectsWrappingCommandActionDelegate for the given command and list
of additional wrappers.java.lang.ClassCastException - If the specified command does not implement Command.public java.lang.Object getImage()
CommandActionDelegategetImage in interface CommandActionDelegatepublic java.lang.String getText()
CommandActionDelegategetText in interface CommandActionDelegatepublic java.lang.String getDescription()
CommandWrappergetDescription in interface CommandgetDescription in interface CommandActionDelegategetDescription in class CommandWrapperpublic java.lang.String getToolTipText()
CommandActionDelegategetToolTipText in interface CommandActionDelegate