Package com.jidesoft.swing
Interface UndoableSupport
-
public interface UndoableSupportA general interface to provide undoable support within Swing component.- Since:
- 3.3.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbeginCompoundEdit(boolean isUndoRedo)Begins the edit of the model.voidendCompoundEdit()Ends the edit of the model.javax.swing.undo.UndoableEditSupportgetUndoableEditSupport()Gets the UndoableEditSupport instance to add UndoableListener.javax.swing.undo.UndoManagergetUndoManager()Gets the UndoManager.
-
-
-
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.
-
-