org.grinvin.gred.undoable

Class InternationalizedUndoableChange

Implemented Interfaces:
UndoableChange
Known Direct Subclasses:
AddElements, ChangeCoordinates, RemoveElements

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.

Constructor Summary

InternationalizedUndoableChange(String keyPrefix)
Construct an undoable change of this type with captions taken from the resource bundle.

Method Summary

String
getRedoCaption()
String
getUndoCaption()
void
redo()
Does nothing.
void
undo()
Does nothing.

Constructor Details

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.

Method Details

getRedoCaption

public String getRedoCaption()

getUndoCaption

public String getUndoCaption()

redo

public void redo()
Does nothing.

undo

public void undo()
Does nothing.