ca.sqlpower.architect.undo
Class UndoManager.SQLObjectUndoableEventAdapter
java.lang.Object
ca.sqlpower.architect.undo.UndoManager.SQLObjectUndoableEventAdapter
- All Implemented Interfaces:
- SQLObjectListener, UndoCompoundEventListener, java.beans.PropertyChangeListener, java.util.EventListener
- Enclosing class:
- UndoManager
public class UndoManager.SQLObjectUndoableEventAdapter
- extends java.lang.Object
- implements UndoCompoundEventListener, SQLObjectListener, java.beans.PropertyChangeListener
Converts received SQLObjectEvents into UndoableEdits, PropertyChangeEvents
into specific edits and adds them to an UndoManager.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UndoManager.SQLObjectUndoableEventAdapter
public UndoManager.SQLObjectUndoableEventAdapter()
canUndoOrRedo
public boolean canUndoOrRedo()
- You should not undo when in a compound edit
- Returns:
dbChildrenInserted
public void dbChildrenInserted(SQLObjectEvent e)
- Specified by:
dbChildrenInserted in interface SQLObjectListener
dbChildrenRemoved
public void dbChildrenRemoved(SQLObjectEvent e)
- Specified by:
dbChildrenRemoved in interface SQLObjectListener
dbObjectChanged
public void dbObjectChanged(SQLObjectEvent e)
- Specified by:
dbObjectChanged in interface SQLObjectListener
dbStructureChanged
public void dbStructureChanged(SQLObjectEvent e)
- Specified by:
dbStructureChanged in interface SQLObjectListener
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Packs property change event into PropertyChangeEdit and then adds
to the undo manager.
- Specified by:
propertyChange in interface java.beans.PropertyChangeListener
compoundEditStart
public void compoundEditStart(UndoCompoundEvent e)
- Specified by:
compoundEditStart in interface UndoCompoundEventListener
compoundEditEnd
public void compoundEditEnd(UndoCompoundEvent e)
- Specified by:
compoundEditEnd in interface UndoCompoundEventListener
Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca