Interface UndoableSupport


  • public interface UndoableSupport
    A general interface to provide undoable support within Swing component.
    Since:
    3.3.4
    • Method Detail

      • getUndoManager

        javax.swing.undo.UndoManager getUndoManager()
        Gets the UndoManager.
        Returns:
        the UndoManager.
      • getUndoableEditSupport

        javax.swing.undo.UndoableEditSupport getUndoableEditSupport()
        Gets the UndoableEditSupport instance to add UndoableListener.
        Returns:
        the UndoableEditSupport instance.
      • beginCompoundEdit

        void beginCompoundEdit​(boolean isUndoRedo)
        Begins the edit of the model.
        Parameters:
        isUndoRedo - the flag to indicate if this operation is triggered by undo/redo
      • endCompoundEdit

        void endCompoundEdit()
        Ends the edit of the model.