Interface UndoRedoSupport.Edit

  • Enclosing class:
    UndoRedoSupport<E>

    public static interface UndoRedoSupport.Edit
    Provides an easy interface to undo/redo a ListEvent in its entirety. At any point in time it is only possible to do one, and only one, of undo() and redo(). To determine which one is allowed, use canUndo() and canRedo().
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean canRedo()
      Returns true if this edit may be redone.
      boolean canUndo()
      Returns true if this edit may be undone.
      void redo()
      Re-applies the edit.
      void undo()
      Undo the edit.
    • Method Detail

      • undo

        void undo()
        Undo the edit.
      • canUndo

        boolean canUndo()
        Returns true if this edit may be undone.
      • redo

        void redo()
        Re-applies the edit.
      • canRedo

        boolean canRedo()
        Returns true if this edit may be redone.