org.rosuda.JGR.toolkit
Class InsertRemoveUndoManager

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by javax.swing.undo.CompoundEdit
          extended by javax.swing.undo.UndoManager
              extended by org.rosuda.JGR.toolkit.InsertRemoveUndoManager
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.swing.event.UndoableEditListener, javax.swing.undo.UndoableEdit

public class InsertRemoveUndoManager
extends javax.swing.undo.UndoManager

InsertRemoveUndoManager - undo only insertion and remove events.

Author:
Markus Helbig RoSuDa 2003 - 2004
See Also:
Serialized Form

Field Summary
 IconButton redoButton
          Redo button from toobar
 IconButton undoButton
          Undo button from toobar
 
Fields inherited from class javax.swing.undo.CompoundEdit
edits
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Constructor Summary
InsertRemoveUndoManager(java.awt.event.ActionListener al)
           
 
Method Summary
 void redo()
          Redo an insertion or remove event.
 void undo()
          Undo an insertion or remove event.
 void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
           
 
Methods inherited from class javax.swing.undo.UndoManager
addEdit, canRedo, canUndo, canUndoOrRedo, discardAllEdits, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, redoTo, setLimit, toString, trimEdits, trimForLimit, 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
 

Field Detail

undoButton

public IconButton undoButton
Undo button from toobar


redoButton

public IconButton redoButton
Redo button from toobar

Constructor Detail

InsertRemoveUndoManager

public InsertRemoveUndoManager(java.awt.event.ActionListener al)
Method Detail

undoableEditHappened

public void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
Specified by:
undoableEditHappened in interface javax.swing.event.UndoableEditListener
Overrides:
undoableEditHappened in class javax.swing.undo.UndoManager

undo

public void undo()
Undo an insertion or remove event.

Specified by:
undo in interface javax.swing.undo.UndoableEdit
Overrides:
undo in class javax.swing.undo.UndoManager

redo

public void redo()
Redo an insertion or remove event.

Specified by:
redo in interface javax.swing.undo.UndoableEdit
Overrides:
redo in class javax.swing.undo.UndoManager