ca.sqlpower.architect.swingui
Class PlayPenComponentLocationEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
ca.sqlpower.architect.swingui.PlayPenComponentLocationEdit
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.undo.UndoableEdit
public class PlayPenComponentLocationEdit
- extends javax.swing.undo.AbstractUndoableEdit
An undoable edit that absorbs PropertyChangeEdits from PlayPenComponents. The
way it is used is to add it to the undo manager using
UndoManager.addEdit(UndoableEdit) before any components start moving.
Then as each successive PropertyChangeEdit is added to the undo
manager, this edit will absorb it if it represents a change in location of a
PlayPenComponent. As soon as any other type of edit is added to the undo
manager, this edit will refuse to absorb it, and new edits will be
accumulated by the undo manager as usual.
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
RedoName, UndoName |
| Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
canRedo, canUndo, die, getPresentationName, replaceEdit, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PlayPenComponentLocationEdit
public PlayPenComponentLocationEdit()
addEdit
public boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
- Specified by:
addEdit in interface javax.swing.undo.UndoableEdit- Overrides:
addEdit in class javax.swing.undo.AbstractUndoableEdit
undo
public void undo()
throws javax.swing.undo.CannotUndoException
- Specified by:
undo in interface javax.swing.undo.UndoableEdit- Overrides:
undo in class javax.swing.undo.AbstractUndoableEdit
- Throws:
javax.swing.undo.CannotUndoException
redo
public void redo()
throws javax.swing.undo.CannotRedoException
- Specified by:
redo in interface javax.swing.undo.UndoableEdit- Overrides:
redo in class javax.swing.undo.AbstractUndoableEdit
- Throws:
javax.swing.undo.CannotRedoException
getUndoPresentationName
public java.lang.String getUndoPresentationName()
- Specified by:
getUndoPresentationName in interface javax.swing.undo.UndoableEdit- Overrides:
getUndoPresentationName in class javax.swing.undo.AbstractUndoableEdit
getRedoPresentationName
public java.lang.String getRedoPresentationName()
- Specified by:
getRedoPresentationName in interface javax.swing.undo.UndoableEdit- Overrides:
getRedoPresentationName in class javax.swing.undo.AbstractUndoableEdit
isSignificant
public boolean isSignificant()
- Specified by:
isSignificant in interface javax.swing.undo.UndoableEdit- Overrides:
isSignificant in class javax.swing.undo.AbstractUndoableEdit
Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca