javax.swing.undo
Class MyUndoManager

Package class diagram package MyUndoManager
java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by javax.swing.undo.CompoundEdit
          extended by javax.swing.undo.UndoManager
              extended by javax.swing.undo.MyUndoManager
All Implemented Interfaces:
Serializable, EventListener, UndoableEditListener, UndoableEdit
Direct Known Subclasses:
UndoManagerBase

public class MyUndoManager
extends UndoManager

Pimp UndoManager a bit.

Version:
$Id: MyUndoManager.java 1031 2009-07-23 15:06:05Z mro $
Author:
M. Rohrmoser
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.undo.UndoManager
indexOfNextAdd, limit
 
Fields inherited from class javax.swing.undo.CompoundEdit
edits, inProgress
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
alive, hasBeenDone, RedoName, UndoName
 
Constructor Summary
MyUndoManager()
           
 
Method Summary
 List<UndoableEdit> getEdits()
          Get the Collections.unmodifiableList(List) view of CompoundEdit#edits.
 int getIndexOfNextAdd()
          Get UndoManager#indexOfNextAdd.
 
Methods inherited from class javax.swing.undo.UndoManager
addEdit, canRedo, canUndo, canUndoOrRedo, discardAllEdits, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, redo, redoTo, setLimit, toString, trimEdits, trimForLimit, undo, undoableEditHappened, undoOrRedo, undoTo
 
Methods inherited from class javax.swing.undo.CompoundEdit
die, getPresentationName, isInProgress, isSignificant, lastEdit
 
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

MyUndoManager

public MyUndoManager()
Method Detail

getEdits

public List<UndoableEdit> getEdits()
Get the Collections.unmodifiableList(List) view of CompoundEdit#edits.


getIndexOfNextAdd

public int getIndexOfNextAdd()
Get UndoManager#indexOfNextAdd. That's the reason for the ugly package name.



Copyright © 2005-2009 jcurl.org. All Rights Reserved.