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 StringReturn 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, waitMethods 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:UndoableEditReturns a localized, human-readable description of the undoable form of this edit, suitable for use as an Undo menu item, for example.- Specified by:
getUndoDescriptionin interfaceUndoableEdit- Returns:
- a description of the undoable form of this edit
-
getRedoDescription
Description copied from interface:UndoableEditReturns a localized, human-readable description of the redoable form of this edit, suitable for use as a Redo menu item, for example.- Specified by:
getRedoDescriptionin 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
-