com.virtuosotechnologies.lib.util
Class CollectingCompoundEdit

java.lang.Object
  extended byjavax.swing.undo.AbstractUndoableEdit
      extended byjavax.swing.undo.CompoundEdit
          extended bycom.virtuosotechnologies.lib.util.CollectingCompoundEdit
All Implemented Interfaces:
EventListener, Serializable, UndoableEdit, UndoableEditListener

public class CollectingCompoundEdit
extends CompoundEdit
implements UndoableEditListener

A CompoundEdit that implements UndoableEditListener. I'd use UndoManager for this, but sometimes we want to disable the limit feature.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.undo.CompoundEdit
edits
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Constructor Summary
CollectingCompoundEdit()
          Constructor
 
Method Summary
 void undoableEditHappened(UndoableEditEvent ev)
          Implementation of UndoableEditListener.
 
Methods inherited from class javax.swing.undo.CompoundEdit
addEdit, canRedo, canUndo, die, end, getPresentationName, getRedoPresentationName, getUndoPresentationName, isInProgress, isSignificant, lastEdit, redo, toString, undo
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
replaceEdit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectingCompoundEdit

public CollectingCompoundEdit()
Constructor

Method Detail

undoableEditHappened

public void undoableEditHappened(UndoableEditEvent ev)
Implementation of UndoableEditListener.

Specified by:
undoableEditHappened in interface UndoableEditListener
Parameters:
ev - event