public class UndoableEditReceiver
extends java.lang.Object
In the documentation, the "receiving phase" refers to the time between the calls to #start and #stop.
If there is an exception that leaves this UndoableCommand execution partially complete and non-unexecutable, be sure to call #reportIrreversibleChange()
Modifier and Type | Class and Description |
---|---|
static interface |
UndoableEditReceiver.Listener |
Constructor and Description |
---|
UndoableEditReceiver() |
Modifier and Type | Method and Description |
---|---|
void |
add(UndoableEditReceiver.Listener listener) |
javax.swing.undo.UndoManager |
getUndoManager() |
boolean |
isReceiving() |
void |
receive(javax.swing.undo.UndoableEdit undoableEdit)
If the currently executing PlugIn or AbstractCursorTool is not undoable,
it should simply not call this method; the undo history will be cleared.
|
void |
reportIrreversibleChange()
Notifies this UndoableEditReceiver that something non-undoable has
happened.
|
void |
reportNothingToUndoYet()
Specifies that the undo history should not be modified at the end of
the current receiving phase, if neither #receive nor #reportIrreversibleChange
is called.
|
void |
startReceiving() |
void |
stopReceiving() |
public void startReceiving()
public void reportNothingToUndoYet()
public void reportIrreversibleChange()
public void stopReceiving()
public void add(UndoableEditReceiver.Listener listener)
public void receive(javax.swing.undo.UndoableEdit undoableEdit)
public javax.swing.undo.UndoManager getUndoManager()
public boolean isReceiving()