org.grinvin.gred.undoable
Class InternationalizedUndoableChange
java.lang.Object
org.grinvin.gred.undoable.InternationalizedUndoableChange
- UndoableChange
public class InternationalizedUndoableChange
extends java.lang.Object
implements UndoableChange
Common superclass of all implementations of
UndoableChange
with
internationalized captions.
Provides storage for captions and an internationalized constructor.
The methods
undo()
and
redo()
have a trivial implementation.
This allows objects of this type to be used as dummy leaders of an
undo/redo group.
InternationalizedUndoableChange
public InternationalizedUndoableChange(String keyPrefix)
Construct an undoable change of this type with captions taken
from the resource bundle. The corresponding resource keys are constructed
from the given prefix by adding .undo and .redo
respectively.
getRedoCaption
public String getRedoCaption()
getUndoCaption
public String getUndoCaption()
redo
public void redo()
Does nothing.
undo
public void undo()
Does nothing.