Class AbstractUndoableEdit

java.lang.Object
com.levigo.jadice.web.client.undo.AbstractUndoableEdit
All Implemented Interfaces:
UndoableEdit
Direct Known Subclasses:
MementoBasedUndoableEdit, RemoveListElementsUndoableEdit

public abstract class AbstractUndoableEdit extends Object implements UndoableEdit
An abstract implementation of UndoableEdit that provides undo/redo descriptions by a common getDescription().
  • Constructor Details

    • AbstractUndoableEdit

      public AbstractUndoableEdit()
  • Method Details

    • getUndoDescription

      public String 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 interface UndoableEdit
      Returns:
      a description of the undoable form of this edit
    • getRedoDescription

      public String 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 interface UndoableEdit
      Returns:
      a description of the redoable form of this edit
    • getDescription

      protected abstract String getDescription()
      Return a presentation name fragment suitable for use both in an "undo something" and "redo something" style phrase.
      Returns:
      a "something" fragment