All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.undo.UndoableEditSupport

java.lang.Object
   |
   +----com.sun.java.swing.undo.UndoableEditSupport

public class UndoableEditSupport
extends Object

Variable Index

 o compoundEdit
 o listeners
 o realSource
 o updateLevel

Constructor Index

 o UndoableEditSupport()
 o UndoableEditSupport(Object)

Method Index

 o _postEdit(UndoableEdit)
Called only from postEdit and endUpdate.
 o addUndoableEditListener(UndoableEditListener)
 o beginUpdate()
 o createCompoundEdit()
Called only from beginUpdate.
 o endUpdate()
DEADLOCK WARNING: Calling this method may call undoableEditHappened in all listeners.
 o getUpdateLevel()
 o postEdit(UndoableEdit)
DEADLOCK WARNING: Calling this method may call undoableEditHappened in all listeners.
 o removeUndoableEditListener(UndoableEditListener)
 o toString()

Variables

 o updateLevel
 protected int updateLevel
 o compoundEdit
 protected CompoundEdit compoundEdit
 o listeners
 protected Vector listeners
 o realSource
 protected Object realSource

Constructors

 o UndoableEditSupport
 public UndoableEditSupport()
 o UndoableEditSupport
 public UndoableEditSupport(Object r)

Methods

 o addUndoableEditListener
 public synchronized void addUndoableEditListener(UndoableEditListener l)
 o removeUndoableEditListener
 public synchronized void removeUndoableEditListener(UndoableEditListener l)
 o _postEdit
 protected void _postEdit(UndoableEdit e)
Called only from postEdit and endUpdate. Calls undoableEditHappened in all listeners. No synchronization is performed here, since the two calling methods are synchonized.

 o postEdit
 public synchronized void postEdit(UndoableEdit e)
DEADLOCK WARNING: Calling this method may call undoableEditHappened in all listeners. It is unwise to call this method from one of its listeners.

 o getUpdateLevel
 public int getUpdateLevel()
 o beginUpdate
 public synchronized void beginUpdate()
 o createCompoundEdit
 protected CompoundEdit createCompoundEdit()
Called only from beginUpdate. Exposed here for subclasses' use

 o endUpdate
 public synchronized void endUpdate()
DEADLOCK WARNING: Calling this method may call undoableEditHappened in all listeners. It is unwise to call this method from one of its listeners.

 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index