Protege-2000 1.7

edu.stanford.smi.protege.util
Class UndoEventManager

java.lang.Object
  |
  +--javax.swing.undo.AbstractUndoableEdit
        |
        +--javax.swing.undo.CompoundEdit
              |
              +--javax.swing.undo.UndoManager
                    |
                    +--edu.stanford.smi.protege.util.UndoEventManager
All Implemented Interfaces:
EventListener, Serializable, UndoableEdit, UndoableEditListener

public class UndoEventManager
extends UndoManager

Singleton wrapper around UndoManager

Author:
Ray Fergerson
See Also:
Serialized Form

Fields inherited from class javax.swing.undo.CompoundEdit
edits
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Method Summary
 void addChangeListener(ChangeListener listener)
           
 boolean addEdit(UndoableEdit edit)
           
 boolean canUndo()
           
 UndoableEdit editToBeRedone()
           
 List getEdits()
           
static UndoEventManager getInstance()
           
 void redo()
           
 void removeChangeListener(ChangeListener listener)
           
 void undo()
           
 
Methods inherited from class javax.swing.undo.UndoManager
canRedo, canUndoOrRedo, discardAllEdits, 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
 

Method Detail

addChangeListener

public void addChangeListener(ChangeListener listener)

addEdit

public boolean addEdit(UndoableEdit edit)
Overrides:
addEdit in class UndoManager

canUndo

public boolean canUndo()
Overrides:
canUndo in class UndoManager

editToBeRedone

public UndoableEdit editToBeRedone()
Overrides:
editToBeRedone in class UndoManager

getEdits

public List getEdits()

getInstance

public static UndoEventManager getInstance()

redo

public void redo()
Overrides:
redo in class UndoManager

removeChangeListener

public void removeChangeListener(ChangeListener listener)

undo

public void undo()
Overrides:
undo in class UndoManager

Protege-2000 1.7

Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.