Package com.jidesoft.swing
Interface UndoableSupport
public interface UndoableSupport
A general interface to provide undoable support within Swing component.
- Since:
- 3.3.4
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beginCompoundEdit
(boolean isUndoRedo) Begins the edit of the model.void
Ends the edit of the model.Gets the UndoableEditSupport instance to add UndoableListener.Gets the UndoManager.
-
Method Details
-
getUndoManager
UndoManager getUndoManager()Gets the UndoManager.- Returns:
- the UndoManager.
-
getUndoableEditSupport
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.
-