public class UndoCommand extends AbstractDocumentCommand implements SelfDescribingCommand
UndoManager
must have un-doable edits in its chain.AbstractDocumentCommand.Scope
document
Constructor and Description |
---|
UndoCommand() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canExecute()
Subclasses may override this method to perform argument validation beyond the validation that
happens automatically during the injection phase.
|
protected void |
execute()
This method is called in order to execute the command.
|
String |
getName()
Provide the equivalent of the
Action.NAME property for this command. |
String |
getShortDescription()
Provide the equivalent of the
Action.SHORT_DESCRIPTION property for this command. |
getRenderControls, getScope, setScope
getPageView, setPageView
getContext, propagateContextChange, setContext
canExecute, execute, getKey, isAvailable, isSelected, isSelected, setKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canExecute, execute, isAvailable, isSelected
protected boolean canExecute()
InjectedCommand
Argument
annotations and the
arguments have been injected.canExecute
in class AbstractDocumentCommand
true
if the command can/may be executed in the current context,
false
otherwise.protected void execute()
InjectedCommand
InjectedCommand.canExecute()
has returned
true
.execute
in class InjectedCommand
public String getName()
SelfDescribingCommand
Action.NAME
property for this command. Implementors are
allowed to return null
from this method in order to signal a fallback to a
non-dynamic name.getName
in interface SelfDescribingCommand
public String getShortDescription()
SelfDescribingCommand
Action.SHORT_DESCRIPTION
property for this command.
Implementors are allowed to return null
from this method in order to signal a
fallback to a non-dynamic description.getShortDescription
in interface SelfDescribingCommand
Copyright © 2024 levigo holding gmbh. All rights reserved.