java.lang.Object | |
↳ | javax.swing.undo.UndoableEditSupport |
A support class used for managing UndoableEdit
listeners.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
compoundEdit | |||||||||||
listeners | |||||||||||
realSource | |||||||||||
updateLevel |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an
UndoableEditSupport object. | |||||||||||
Constructs an
UndoableEditSupport object. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Registers an
UndoableEditListener . | |||||||||||
DEADLOCK WARNING: Calling this method may call
undoableEditHappened in all listeners. | |||||||||||
Returns an array of all the
UndoableEditListener s added
to this UndoableEditSupport with addUndoableEditListener(). | |||||||||||
Returns the update level value.
| |||||||||||
DEADLOCK WARNING: Calling this method may call
undoableEditHappened in all listeners. | |||||||||||
Removes an
UndoableEditListener . | |||||||||||
Returns a string that displays and identifies this
object's properties.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called only from
postEdit and endUpdate . | |||||||||||
Called only from
beginUpdate . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs an UndoableEditSupport
object.
Constructs an UndoableEditSupport
object.
r | an Object
|
---|
Registers an UndoableEditListener
.
The listener is notified whenever an edit occurs which can be undone.
l | an UndoableEditListener object |
---|
DEADLOCK WARNING: Calling this method may call
undoableEditHappened
in all listeners.
It is unwise to call this method from one of its listeners.
Returns an array of all the UndoableEditListener
s added
to this UndoableEditSupport with addUndoableEditListener().
UndoableEditListener
s added or an empty
array if no listeners have been addedReturns the update level value.
DEADLOCK WARNING: Calling this method may call
undoableEditHappened
in all listeners.
It is unwise to call this method from one of its listeners.
Removes an UndoableEditListener
.
l | the UndoableEditListener object to be removed |
---|
Returns a string that displays and identifies this object's properties.
String
representation of this object
Called only from postEdit
and endUpdate
. Calls
undoableEditHappened
in all listeners. No synchronization
is performed here, since the two calling methods are synchronized.
Called only from beginUpdate
.
Exposed here for subclasses' use.