Class AbstractUndoableEdit
java.lang.Object
com.levigo.jadice.web.client.undo.AbstractUndoableEdit
- All Implemented Interfaces:
UndoableEdit
- Direct Known Subclasses:
MementoBasedUndoableEdit
,RemoveListElementsUndoableEdit
An abstract implementation of
UndoableEdit
that provides undo/redo descriptions by a
common getDescription()
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
Return a presentation name fragment suitable for use both in an "undo something" and "redo something" style phrase.Returns a localized, human-readable description of the redoable form of this edit, suitable for use as a Redo menu item, for example.Returns a localized, human-readable description of the undoable form of this edit, suitable for use as an Undo menu item, for example.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.levigo.jadice.web.client.undo.UndoableEdit
canRedo, canUndo, discard, redo, tryMergeInto, undo
-
Constructor Details
-
AbstractUndoableEdit
public AbstractUndoableEdit()
-
-
Method Details
-
getUndoDescription
Description copied from interface:UndoableEdit
Returns a localized, human-readable description of the undoable form of this edit, suitable for use as an Undo menu item, for example.- Specified by:
getUndoDescription
in interfaceUndoableEdit
- Returns:
- a description of the undoable form of this edit
-
getRedoDescription
Description copied from interface:UndoableEdit
Returns a localized, human-readable description of the redoable form of this edit, suitable for use as a Redo menu item, for example.- Specified by:
getRedoDescription
in interfaceUndoableEdit
- Returns:
- a description of the redoable form of this edit
-
getDescription
Return a presentation name fragment suitable for use both in an "undo something" and "redo something" style phrase.- Returns:
- a "something" fragment
-