be.ugent.caagt.swirl.undoredo
Class UndoRedoAction
- EventListener, UndoListener
public abstract class UndoRedoAction
UndoRedoAction(UndoManager manager, ResourceBundle bundle, String key, Icon icon, Icon mediumIcon, Icon mediumDisabledIcon) - Create an action of this type with the given parameters
|
protected abstract String | getCaption() - Obtain the correct caption from the manager.
|
@Override | void putValue(String key, Object newValue) - Overridden to set the disabled caption
from the first caption set.
|
@Override | void setEnabled(boolean newValue) - Enables/disables the action and changes the caption accordingly.
|
UndoRedoAction
protected UndoRedoAction(UndoManager manager,
ResourceBundle bundle,
String key,
Icon icon,
Icon mediumIcon,
Icon mediumDisabledIcon)
Create an action of this type with the given parameters
getCaption
protected abstract String getCaption()
Obtain the correct caption from the manager.
void putValue
public @Override void putValue(String key,
Object newValue)
Overridden to set the disabled caption
from the first caption set.
void setEnabled
public @Override void setEnabled(boolean newValue)
Enables/disables the action and changes the caption accordingly.