org.xmlhammer.gui
Class ProjectUndoManager

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by javax.swing.undo.CompoundEdit
          extended by javax.swing.undo.UndoManager
              extended by org.xmlhammer.gui.ProjectUndoManager
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.swing.event.UndoableEditListener, javax.swing.undo.UndoableEdit

public class ProjectUndoManager
extends javax.swing.undo.UndoManager

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
ProjectUndoManager()
           
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener listener)
           
 boolean addDiscardableEdit(javax.swing.undo.UndoableEdit edit)
           
 boolean addEdit(javax.swing.undo.UndoableEdit edit)
           
 boolean canRedo()
           
 boolean canUndo()
           
 void discardAllEdits()
           
 void discardCompound()
           
 void discardDiscardableEdits()
           
 void endCompound()
           
protected  void fireStateChanged()
           
 boolean isCompound()
           
 boolean isMark()
           
 void mark()
           
 void redo()
           
 void removeChangeListener(javax.swing.event.ChangeListener listener)
           
 void startCompound()
           
 void undo()
           
 
Methods inherited from class javax.swing.undo.UndoManager
canUndoOrRedo, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, redoTo, setLimit, toString, trimEdits, trimForLimit, 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

ProjectUndoManager

public ProjectUndoManager()
Method Detail

addEdit

public boolean addEdit(javax.swing.undo.UndoableEdit edit)
Specified by:
addEdit in interface javax.swing.undo.UndoableEdit
Overrides:
addEdit in class javax.swing.undo.UndoManager

addDiscardableEdit

public boolean addDiscardableEdit(javax.swing.undo.UndoableEdit edit)

undo

public void undo()
Specified by:
undo in interface javax.swing.undo.UndoableEdit
Overrides:
undo in class javax.swing.undo.UndoManager

startCompound

public void startCompound()

endCompound

public void endCompound()

discardCompound

public void discardCompound()

isCompound

public boolean isCompound()

redo

public void redo()
Specified by:
redo in interface javax.swing.undo.UndoableEdit
Overrides:
redo in class javax.swing.undo.UndoManager

mark

public void mark()

isMark

public boolean isMark()

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener listener)

removeChangeListener

public void removeChangeListener(javax.swing.event.ChangeListener listener)

canUndo

public boolean canUndo()
Specified by:
canUndo in interface javax.swing.undo.UndoableEdit
Overrides:
canUndo in class javax.swing.undo.UndoManager

canRedo

public boolean canRedo()
Specified by:
canRedo in interface javax.swing.undo.UndoableEdit
Overrides:
canRedo in class javax.swing.undo.UndoManager

discardDiscardableEdits

public void discardDiscardableEdits()

discardAllEdits

public void discardAllEdits()
Overrides:
discardAllEdits in class javax.swing.undo.UndoManager

fireStateChanged

protected void fireStateChanged()


Copyright 2005-2005-2008 Edwin Dankert. All Rights Reserved.