| java.lang.Object javax.swing.undo.UndoableEditSupport
UndoableEditSupport | public class UndoableEditSupport (Code) | | |
realSource | protected Object realSource(Code) | | Source for UndoableEditEvent
|
updateLevel | protected int updateLevel(Code) | | This is a counter. BeginUpdate call increases this variable, endUpdate
call decreases this variable.
|
UndoableEditSupport | public UndoableEditSupport()(Code) | | Calls UndoableEditSupport(null)
|
UndoableEditSupport | public UndoableEditSupport(Object source)(Code) | | If source equals null, realSource will be this
object(UndoableEditSupport).
|
_postEdit | protected void _postEdit(UndoableEdit ue)(Code) | | Creates a clone of listeners vector. Then calls undoableEditHappened on
all registered listeners with new UndoableEditEvent(realSource, ue).
|
beginUpdate | public synchronized void beginUpdate()(Code) | | If updateLevel equals 0, sets compoundEdit by createCompoundEdit call.
Increments updateLevel. This method updates updateLevel variable, because
of this it is thread - safe
|
endUpdate | public synchronized void endUpdate()(Code) | | This method is a thread-safe method.
|
getUpdateLevel | public int getUpdateLevel()(Code) | | |
postEdit | public synchronized void postEdit(UndoableEdit ue)(Code) | | Thread-safe method. If updateLevel equals 0, then calls _postEdit;
otherwise, calls compoundEdit(ue).
|
|
|