public class CopyToClipboardOverrideCommand extends CopyToClipboardCommand
AbstractCommand.NonDirtying
Modifier and Type | Field and Description |
---|---|
protected java.util.Collection<?> |
inputObjects
This is the collection of read-only (input) objects that don't need to actually be copied.
|
copyCommand, DESCRIPTION, LABEL, oldClipboard, sourceObjects
domain, overrideCommand
description, isExecutable, isPrepared, label
Constructor and Description |
---|
CopyToClipboardOverrideCommand(MappingDomain domain,
java.util.Collection<?> nonInputObjects,
java.util.Collection<?> inputObjects)
This constructs a command that copies the given collections of objects to the clipboard.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
prepare()
Called at most once in
AbstractCommand.canExecute() to give the command an opportunity to ready itself for execution. |
create, create, doDispose, doExecute, doGetAffectedObjects, doGetResult, doRedo, doUndo, getSourceObjects, toString
canExecute, canUndo, dispose, doCanExecute, doCanUndo, doGetChildrenToCopy, doGetDescription, doGetLabel, execute, getAffectedObjects, getChildrenToCopy, getDescription, getDomain, getLabel, getOverride, getOwnerList, getResult, redo, setOverride, undo, updateEMap
chain, setDescription, setLabel
protected java.util.Collection<?> inputObjects
public CopyToClipboardOverrideCommand(MappingDomain domain, java.util.Collection<?> nonInputObjects, java.util.Collection<?> inputObjects)
protected boolean prepare()
AbstractCommand
AbstractCommand.canExecute()
to give the command an opportunity to ready itself for execution.
The returned value is stored in AbstractCommand.canExecute()
.
In other words, you can override this method to initialize
and to yield a cached value for the all subsequent calls to canExecute.prepare
in class CopyToClipboardCommand