public class OAUndoManager extends UndoManager
see UndoableController
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected static boolean |
bIgnoreAll |
protected static boolean |
bVerbose |
protected static Hashtable |
hash |
protected static OAUndoManager |
undoManager |
edits
RedoName, UndoName
Modifier | Constructor and Description |
---|---|
protected |
OAUndoManager() |
Modifier and Type | Method and Description |
---|---|
static void |
add(UndoableEdit anEdit) |
static void |
add(UndoableEdit[] anEdits) |
boolean |
addEdit(UndoableEdit anEdit) |
static void |
cancelCompoundEdit() |
static OAUndoManager |
createUndoManager() |
static void |
endCompoundEdit() |
static void |
endCompoundEditForPropertyChanges() |
static boolean |
getIgnore() |
static OAUndoManager |
getUndoManager() |
static boolean |
getVerbose() |
static void |
ignore() |
static void |
ignore(boolean b)
same as calling setIgnore(true)
|
static boolean |
isInCompoundEdit() |
static void |
setIgnore(boolean b)
Increment/Deincrement ignore counter for current thread
|
static void |
setIgnore(boolean b,
boolean bResetToZero) |
static void |
setIgnoreAll(boolean b)
Ignore all events
|
static void |
setVerbose(boolean b) |
static void |
startCompoundEdit()
Used to group more then one undoable edit into one undoable edit.
|
static void |
startCompoundEdit(String presentationName) |
static void |
startCompoundEdit(String presentationName,
boolean bCanRedoThis) |
static void |
startCompoundEditForPropertyChanges(String presentationName)
All OAObject property changes will be captured into an Undoable.
|
void |
undo() |
canRedo, canUndo, canUndoOrRedo, discardAllEdits, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, redo, redoTo, setLimit, toString, trimEdits, trimForLimit, undoableEditHappened, undoOrRedo, undoTo
die, getPresentationName, isInProgress, isSignificant, lastEdit
replaceEdit
protected static Hashtable hash
protected static OAUndoManager undoManager
protected static boolean bVerbose
protected static boolean bIgnoreAll
protected OAUndoManager()
createUndoManager()
public static OAUndoManager createUndoManager()
public static OAUndoManager getUndoManager()
public static void setVerbose(boolean b)
public static boolean getVerbose()
public static void startCompoundEdit()
public static void startCompoundEdit(String presentationName)
public static void startCompoundEditForPropertyChanges(String presentationName)
public static void endCompoundEditForPropertyChanges()
public static void startCompoundEdit(String presentationName, boolean bCanRedoThis)
public static void endCompoundEdit()
public static boolean isInCompoundEdit()
public static void cancelCompoundEdit()
public static void add(UndoableEdit anEdit)
public static void add(UndoableEdit[] anEdits)
public boolean addEdit(UndoableEdit anEdit)
addEdit
in interface UndoableEdit
addEdit
in class UndoManager
public static void setIgnore(boolean b)
public static void setIgnore(boolean b, boolean bResetToZero)
bResetToZero
- reset counter to zero before performing setting ignore counterpublic static void ignore()
public static void ignore(boolean b)
public static boolean getIgnore()
public static void setIgnoreAll(boolean b)
public void undo() throws CannotUndoException
undo
in interface UndoableEdit
undo
in class UndoManager
CannotUndoException
Copyright © 1999–2019 ViaOA. All rights reserved.