ca.sqlpower.architect.undo
Interface NotifyingUndoManager

All Known Implementing Classes:
OLAPUndoManager, UndoManager

public interface NotifyingUndoManager


Method Summary
 void addChangeListener(javax.swing.event.ChangeListener l)
          Adds the given change listener, which will be notified with a ChangeEvent every time this undo manager's state has changed.
 boolean canRedo()
           
 boolean canUndo()
           
 java.lang.String getRedoPresentationName()
           
 java.lang.String getUndoOrRedoPresentationName()
           
 java.lang.String getUndoPresentationName()
           
 void redo()
           
 void removeChangeListener(javax.swing.event.ChangeListener l)
          Removes the given change listener, so it will no longer be notified when this manager's state changes.
 void undo()
           
 

Method Detail

addChangeListener

void addChangeListener(javax.swing.event.ChangeListener l)
Adds the given change listener, which will be notified with a ChangeEvent every time this undo manager's state has changed. The manager's state generally changes when an undoable edit is added, or an undo or redo operation is performed.


removeChangeListener

void removeChangeListener(javax.swing.event.ChangeListener l)
Removes the given change listener, so it will no longer be notified when this manager's state changes.


undo

void undo()
          throws javax.swing.undo.CannotUndoException
Throws:
javax.swing.undo.CannotUndoException

redo

void redo()
          throws javax.swing.undo.CannotUndoException
Throws:
javax.swing.undo.CannotUndoException

canUndo

boolean canUndo()

canRedo

boolean canRedo()

getUndoPresentationName

java.lang.String getUndoPresentationName()

getRedoPresentationName

java.lang.String getRedoPresentationName()

getUndoOrRedoPresentationName

java.lang.String getUndoOrRedoPresentationName()


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca