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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
beginCompoundEdit(boolean isUndoRedo)
Begins the edit of the model.void
endCompoundEdit()
Ends the edit of the model.javax.swing.undo.UndoableEditSupport
getUndoableEditSupport()
Gets the UndoableEditSupport instance to add UndoableListener.javax.swing.undo.UndoManager
getUndoManager()
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.
-
-