java.lang.Object
org.autogui.swing.util.KeyUndoManager
- All Implemented Interfaces:
FocusListener
,KeyListener
,EventListener
,UndoableEditListener
public class KeyUndoManager
extends Object
implements KeyListener, UndoableEditListener, FocusListener
the class provides Undo and Redo actions for text panes.
usage:
KeyUndoManager km = new KeyUndoManager(); km.putListenersAndActionsTo(editorPane);
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
a composition of undoable-editsstatic class
the action for undo or redo -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected KeyUndoManager.DynamicCompoundEdit
protected KeyUndoManager.UndoAction
protected KeyUndoManager.UndoAction
protected UndoManager
protected boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
boolean
void
void
void
void
void
void
void
-
Field Details
-
undoManager
-
edits
-
whileKeyTyping
protected boolean whileKeyTyping -
undoAction
-
redoAction
-
-
Constructor Details
-
KeyUndoManager
public KeyUndoManager() -
KeyUndoManager
-
-
Method Details
-
getUndoManager
-
getUndoAction
-
getRedoAction
-
putListenersAndActionsTo
-
addListenersTo
-
updateDocument
-
putUndoActionsTo
-
keyTyped
- Specified by:
keyTyped
in interfaceKeyListener
-
keyPressed
- Specified by:
keyPressed
in interfaceKeyListener
-
isRegularKeyType
-
keyReleased
- Specified by:
keyReleased
in interfaceKeyListener
-
undoableEditHappened
- Specified by:
undoableEditHappened
in interfaceUndoableEditListener
-
checkEnabled
public void checkEnabled() -
focusGained
- Specified by:
focusGained
in interfaceFocusListener
-
focusLost
- Specified by:
focusLost
in interfaceFocusListener
-