public class JshiftUndoManager extends UndoManager implements ExposedCompoundEdit, TreeModel
edits
RedoName, UndoName
Constructor and Description |
---|
JshiftUndoManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
addEdit(UndoableEdit pEdit) |
void |
addTreeModelListener(TreeModelListener pListener) |
void |
addUndoOrRedoListener(UndoOrRedoListener pListener) |
static SortedMap |
decompose(ExposedCompoundEdit pCompoundEdit)
Get a map where the key is an UndoableEdit and the value is another SortedMap
with an entry for each sub-edit.
|
UndoableEdit |
editToBeRedone()
Make method public.
|
UndoableEdit |
editToBeUndone()
Make method public.
|
void |
fireTreeNodesInserted() |
void |
fireTreeStructureChanged() |
Object |
getChild(Object pParent,
int pIdx) |
int |
getChildCount(Object pParent) |
Vector<UndoableEdit> |
getEdits() |
int |
getIndex()
Current location in edit vector.
|
int |
getIndexOfChild(Object pParent,
Object pChild) |
Object |
getRoot() |
boolean |
isAcceptingEdits()
If false, addEdit will have no effect and will return false.
|
boolean |
isLeaf(Object pNode) |
void |
redo() |
void |
refreshDecomposition() |
void |
removeTreeModelListener(TreeModelListener pListener) |
void |
removeUndoOrRedoListener(UndoOrRedoListener pListener) |
void |
setAcceptingEdits(boolean pAcceptingEdits) |
String |
toString() |
void |
undo() |
void |
valueForPathChanged(TreePath pPath,
Object pNewValue) |
canRedo, canUndo, canUndoOrRedo, discardAllEdits, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, redoTo, setLimit, trimEdits, trimForLimit, undoableEditHappened, undoOrRedo, undoTo
die, getPresentationName, isInProgress, isSignificant, lastEdit
replaceEdit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit
public boolean isAcceptingEdits()
public void setAcceptingEdits(boolean pAcceptingEdits)
isAcceptingEdits()
public Vector<UndoableEdit> getEdits()
getEdits
in interface ExposedCompoundEdit
public int getIndex()
UndoManager.indexOfNextAdd
public boolean addEdit(UndoableEdit pEdit)
addEdit
in interface UndoableEdit
addEdit
in class UndoManager
public UndoableEdit editToBeUndone()
editToBeUndone
in class UndoManager
public UndoableEdit editToBeRedone()
editToBeRedone
in class UndoManager
public void undo()
undo
in interface UndoableEdit
undo
in class UndoManager
public void redo()
redo
in interface UndoableEdit
redo
in class UndoManager
public void addUndoOrRedoListener(UndoOrRedoListener pListener)
public void removeUndoOrRedoListener(UndoOrRedoListener pListener)
public static SortedMap decompose(ExposedCompoundEdit pCompoundEdit)
public void refreshDecomposition()
public String toString()
toString
in class UndoManager
public int getChildCount(Object pParent)
getChildCount
in interface TreeModel
public void valueForPathChanged(TreePath pPath, Object pNewValue)
valueForPathChanged
in interface TreeModel
public int getIndexOfChild(Object pParent, Object pChild)
getIndexOfChild
in interface TreeModel
public void addTreeModelListener(TreeModelListener pListener)
addTreeModelListener
in interface TreeModel
public void removeTreeModelListener(TreeModelListener pListener)
removeTreeModelListener
in interface TreeModel
public void fireTreeStructureChanged()
public void fireTreeNodesInserted()
Copyright © 2023. All rights reserved.