dsto.dfc.swing.undo
Class PropertyEditBean
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
dsto.dfc.swing.undo.AbstractMonitoredEdit
dsto.dfc.swing.undo.PropertyEdit
dsto.dfc.swing.undo.PropertyEditBean
- All Implemented Interfaces:
- Iconic, MonitoredEdit, Restorable, Copyable, Serializable, Cloneable, UndoableEdit
- Direct Known Subclasses:
- ActivePanelEdit, FloatStateEdit
public class PropertyEditBean
- extends PropertyEdit
Bean PropertyEdit class for Bean serialisation support. Subclass this class
if you want your property edits to be bean serialisable. Getter and setter
methods simply get and set the appropriate properties.
- Version:
- $Revision$
- Author:
- Peter J Smet
- See Also:
- Serialized Form
Methods inherited from class dsto.dfc.swing.undo.AbstractMonitoredEdit |
canRedo, canUndo, clone, die, getIcon, getLargeIcon, getName, getParameterNames, getParameterValues, restoreContext, setParameterNames, setParameterValues |
PropertyEditBean
public PropertyEditBean()
- Vanilla constructor for bean serialisation support.
PropertyEditBean
public PropertyEditBean(Object source,
String propertyName,
Object oldValue,
Object newValue)
- Need a value constructor because constructors are not inherited.
getSource
public Object getSource()
setSource
public void setSource(Object newSource)
setOldValue
public void setOldValue(Object newOldValue)
getOldValue
public Object getOldValue()
setNewValue
public void setNewValue(Object newNewValue)
getNewValue
public Object getNewValue()
getDescription
public String getDescription()
- Description copied from class:
PropertyEdit
- Returns a description of this type of
UndoableEdit
.
- Specified by:
getDescription
in interface MonitoredEdit
- Overrides:
getDescription
in class PropertyEdit
Copyright © 2008 Commonwealth of Australia