|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dsto.dfc.swing.commands.AbstractCommand dsto.dfc.swing.commands.AbstractMutableCommand dsto.dfc.swing.undo.AbstractUndoableCommand dsto.dfc.swing.undo.CmdRedo
public class CmdRedo
Command to invoke a single redo () on the MonitoredUndoManager
.
Field Summary | |
---|---|
static Icon |
ICON
|
Fields inherited from class dsto.dfc.swing.undo.AbstractUndoableCommand |
---|
cursorUpdatePolicy, exceptionHandler, name, undoManager |
Fields inherited from class dsto.dfc.swing.commands.AbstractMutableCommand |
---|
listeners |
Fields inherited from class dsto.dfc.swing.commands.AbstractCommand |
---|
displayName, icon |
Fields inherited from interface dsto.dfc.swing.icons.Iconic |
---|
NULL_ICON |
Constructor Summary | |
---|---|
CmdRedo(MonitoredUndoManager undoManager)
|
Method Summary | |
---|---|
void |
execute(UndoableEdit edit)
Implement this method with the command's behaviour. |
KeyStroke |
getAccelerator()
The keyboard accelerator is Ctrl-R. |
String |
getDescription()
A short description of the command, suitable for a tooltip or use in a status panel. |
Icon |
getIcon()
The small (16x16) icon for the object. |
char |
getMnemonic()
Get a character shortcut for the command (eg for use on a menu). |
UndoableEdit |
selectedEdit()
Returns the next edit to be redone. |
void |
skip()
Implement this command to determine how to skip an edit which causes an exception. |
void |
updateEnabled()
This checks that the selected edit is in the MonitoredUndoManager 's
redo list. |
Methods inherited from class dsto.dfc.swing.undo.AbstractUndoableCommand |
---|
execute, getGroupInView, getName, handleNonExecutableEdit, isInteractive, listenForEnablingEvents, listenForEnablingEvents, pause, retry, stopListeningForEnablingEvents |
Methods inherited from class dsto.dfc.swing.commands.AbstractMutableCommand |
---|
addPropertyChangeListener, clone, isEnabled, removePropertyChangeListener, setEnabled, setIcon |
Methods inherited from class dsto.dfc.swing.commands.AbstractCommand |
---|
actionPerformed, canReplace, getDefaultDisplayName, getDisplayName, getLargeIcon, getLogString, setDisplayName |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Icon ICON
Constructor Detail |
---|
public CmdRedo(MonitoredUndoManager undoManager)
Method Detail |
---|
public Icon getIcon()
Iconic
getIcon
in interface Iconic
getIcon
in class AbstractCommand
public char getMnemonic()
Command
getMnemonic
in interface Command
getMnemonic
in class AbstractCommand
public void execute(UndoableEdit edit)
AbstractUndoableCommand
execute
in class AbstractUndoableCommand
public UndoableEdit selectedEdit()
selectedEdit
in class AbstractUndoableCommand
public String getDescription()
Command
getDescription
in interface Command
getDescription
in class AbstractCommand
public void updateEnabled()
MonitoredUndoManager
's
redo list.
updateEnabled
in class AbstractUndoableCommand
public void skip()
AbstractUndoableCommand
skip
in interface EditExceptionPolicy
skip
in class AbstractUndoableCommand
public KeyStroke getAccelerator()
getAccelerator
in interface Command
getAccelerator
in class AbstractCommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |