public class TLcdUndoAction extends ALcdAction
This ILcdAction
allows to call undo
on the TLcdUndoManager
given at construction time. It automatically enables/disables this action when needed.
A custom name or icon can be set to this action using the ILcdAction
interface.
ILcdUndoable
,
TLcdUndoManager
,
TLcdRedoAction
,
Serialized FormchangeSupport
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE
Constructor and Description |
---|
TLcdUndoAction(TLcdUndoManager aUndoManager) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Asks this
TLcdUndoAction to be performed. |
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, isTraceOn, putValue, registerInstance, removePropertyChangeListener, setClassTraceOn, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription, setTraceOn
public TLcdUndoAction(TLcdUndoManager aUndoManager)
public void actionPerformed(ActionEvent e)
TLcdUndoAction
to be performed. It will get the current
ILcdUndoable
from the TLcdUndoManager
of the application, and then
call its undo()
method.