|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
ca.sqlpower.architect.undo.PropertyChangeEdit
public class PropertyChangeEdit
This is the generic edit class that dynamically modifies bean properties according to the PropertyChangeEvent source and the property name.
| Field Summary |
|---|
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
RedoName, UndoName |
| Constructor Summary | |
|---|---|
PropertyChangeEdit(java.beans.PropertyChangeEvent e)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getNewValue()
Returns the property's new value. |
java.lang.Object |
getOldValue()
Returns the property's old value. |
java.lang.String |
getPresentationName()
|
java.lang.String |
getPropertyName()
Returns the name of the property that this edit represents a change to. |
java.lang.Object |
getSource()
Returns the object whose property changed. |
void |
redo()
Sets the value of the property to be the new value |
java.lang.String |
toString()
|
void |
undo()
Sets the value of the property to be the old value |
| Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
addEdit, canRedo, canUndo, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyChangeEdit(java.beans.PropertyChangeEvent e)
| Method Detail |
|---|
public void undo()
throws javax.swing.undo.CannotUndoException
undo in interface javax.swing.undo.UndoableEditundo in class javax.swing.undo.AbstractUndoableEditjavax.swing.undo.CannotUndoException
public void redo()
throws javax.swing.undo.CannotRedoException
redo in interface javax.swing.undo.UndoableEditredo in class javax.swing.undo.AbstractUndoableEditjavax.swing.undo.CannotRedoExceptionpublic java.lang.String getPresentationName()
getPresentationName in interface javax.swing.undo.UndoableEditgetPresentationName in class javax.swing.undo.AbstractUndoableEditpublic java.lang.String getPropertyName()
public java.lang.Object getNewValue()
public java.lang.Object getOldValue()
public java.lang.Object getSource()
public java.lang.String toString()
toString in class javax.swing.undo.AbstractUndoableEdit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||