|
JHotDraw 7.5.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
org.jhotdraw.beans.PropertyChangeEdit
public class PropertyChangeEdit
An UndoableEdit event which can undo a change of a JavaBeans property.
| Field Summary |
|---|
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
RedoName, UndoName |
| Constructor Summary | |
|---|---|
PropertyChangeEdit(java.lang.Object source,
java.lang.String propertyName,
boolean oldValue,
boolean newValue)
Creates a new PropertyChangeEdit. |
|
PropertyChangeEdit(java.lang.Object source,
java.lang.String propertyName,
char oldValue,
char newValue)
Creates a new PropertyChangeEdit. |
|
PropertyChangeEdit(java.lang.Object source,
java.lang.String propertyName,
java.lang.Class<T> type,
T oldValue,
T newValue)
Creates a new PropertyChangeEdit. |
|
PropertyChangeEdit(java.lang.Object source,
java.lang.String propertyName,
double oldValue,
double newValue)
Creates a new PropertyChangeEdit. |
|
PropertyChangeEdit(java.lang.Object source,
java.lang.String propertyName,
float oldValue,
float newValue)
Creates a new PropertyChangeEdit. |
|
PropertyChangeEdit(java.lang.Object source,
java.lang.String propertyName,
int oldValue,
int newValue)
Creates a new PropertyChangeEdit. |
|
PropertyChangeEdit(java.lang.Object source,
java.lang.String propertyName,
long oldValue,
long newValue)
Creates a new PropertyChangeEdit. |
|
PropertyChangeEdit(java.lang.Object source,
java.lang.String propertyName,
java.lang.String oldValue,
java.lang.String newValue)
Creates a new PropertyChangeEdit. |
|
| Method Summary | |
|---|---|
boolean |
addEdit(javax.swing.undo.UndoableEdit anEdit)
Adds the specified edit to this one, if it is a PropertyChangeEdit
from the same owner and the same property. |
java.lang.String |
getPresentationName()
Returns the presentation name of the undoable edit. |
protected java.lang.reflect.Method |
getSetter()
Returns the setter for the property. |
void |
redo()
Redoes the change. |
void |
setPresentationName(java.lang.String presentationName)
Sets the presentation name of the undoable edit. |
java.lang.String |
toString()
Returns a string representation of this object useful for debugging. |
void |
undo()
Undoes the change. |
| Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
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.lang.Object source,
java.lang.String propertyName,
java.lang.Class<T> type,
T oldValue,
T newValue)
public PropertyChangeEdit(java.lang.Object source,
java.lang.String propertyName,
boolean oldValue,
boolean newValue)
public PropertyChangeEdit(java.lang.Object source,
java.lang.String propertyName,
int oldValue,
int newValue)
public PropertyChangeEdit(java.lang.Object source,
java.lang.String propertyName,
long oldValue,
long newValue)
public PropertyChangeEdit(java.lang.Object source,
java.lang.String propertyName,
float oldValue,
float newValue)
public PropertyChangeEdit(java.lang.Object source,
java.lang.String propertyName,
double oldValue,
double newValue)
public PropertyChangeEdit(java.lang.Object source,
java.lang.String propertyName,
char oldValue,
char newValue)
public PropertyChangeEdit(java.lang.Object source,
java.lang.String propertyName,
java.lang.String oldValue,
java.lang.String newValue)
| Method Detail |
|---|
protected java.lang.reflect.Method getSetter()
public void undo()
throws javax.swing.undo.CannotRedoException
undo in interface javax.swing.undo.UndoableEditundo in class javax.swing.undo.AbstractUndoableEditjavax.swing.undo.CannotRedoException
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 void setPresentationName(java.lang.String presentationName)
public boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
PropertyChangeEdit
from the same owner and the same property.
addEdit in interface javax.swing.undo.UndoableEditaddEdit in class javax.swing.undo.AbstractUndoableEditanEdit - Edit to be added.
public java.lang.String toString()
toString in class javax.swing.undo.AbstractUndoableEdit
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||