public class mxUndoableEdit
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
mxUndoableEdit.mxUndoableChange
Defines the requirements for an undoable change.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<mxUndoableEdit.mxUndoableChange> |
changes
Holds the list of changes that make up this undoable edit.
|
protected boolean |
redone
Specifies the state of the undoable edit.
|
protected boolean |
significant
Specifies this undoable edit is significant.
|
protected java.lang.Object |
source
Holds the source of the undoable edit.
|
protected boolean |
undone
Specifies the state of the undoable edit.
|
Constructor and Description |
---|
mxUndoableEdit(java.lang.Object source)
Constructs a new undoable edit for the given source.
|
mxUndoableEdit(java.lang.Object source,
boolean significant)
Constructs a new undoable edit for the given source.
|
Modifier and Type | Method and Description |
---|---|
void |
add(mxUndoableEdit.mxUndoableChange change)
Adds the specified change to this edit.
|
void |
die()
Hook to free resources after the edit has been removed from the command
history.
|
void |
dispatch()
Hook to notify any listeners of the changes after an undo or redo
has been carried out.
|
java.util.List<mxUndoableEdit.mxUndoableChange> |
getChanges() |
java.lang.Object |
getSource() |
boolean |
isEmpty()
Returns true if the this edit contains no changes.
|
boolean |
isRedone() |
boolean |
isSignificant() |
boolean |
isUndone() |
void |
redo() |
void |
undo() |
protected java.lang.Object source
protected java.util.List<mxUndoableEdit.mxUndoableChange> changes
protected boolean significant
protected boolean undone
protected boolean redone
public mxUndoableEdit(java.lang.Object source)
public mxUndoableEdit(java.lang.Object source, boolean significant)
public void dispatch()
public void die()
public java.lang.Object getSource()
public java.util.List<mxUndoableEdit.mxUndoableChange> getChanges()
public boolean isSignificant()
public boolean isUndone()
public boolean isRedone()
public boolean isEmpty()
public void add(mxUndoableEdit.mxUndoableChange change)
public void undo()
public void redo()
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.