public class ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommandActionDelegate extends ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommand implements CommandActionDelegate
ResultAndAffectedObjectsWrappingCommandActionDelegate
wraps another command that also implements
CommandActionDelegate
, to substitute IWrapperItemProvider
s 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.NonDirtying
additionalWrappers, owners
command
description, 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, wrapValues
canUndo, createCommand, dispose, execute, getCommand, getLabel, prepare, redo, toString, undo
canExecute, chain, setDescription, setLabel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canExecute
public 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()
CommandActionDelegate
getImage
in interface CommandActionDelegate
public java.lang.String getText()
CommandActionDelegate
getText
in interface CommandActionDelegate
public java.lang.String getDescription()
CommandWrapper
getDescription
in interface Command
getDescription
in interface CommandActionDelegate
getDescription
in class CommandWrapper
public java.lang.String getToolTipText()
CommandActionDelegate
getToolTipText
in interface CommandActionDelegate