dsto.dfc.swing.undo
Class PropertyEditBean

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by dsto.dfc.swing.undo.AbstractMonitoredEdit
          extended by dsto.dfc.swing.undo.PropertyEdit
              extended by 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

Field Summary
 
Fields inherited from class dsto.dfc.swing.undo.PropertyEdit
newValue, oldValue, propertyName, source
 
Fields inherited from class dsto.dfc.swing.undo.AbstractMonitoredEdit
alive, ICON, parameterNames, parameterValues
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Fields inherited from interface dsto.dfc.swing.icons.Iconic
NULL_ICON
 
Constructor Summary
PropertyEditBean()
          Vanilla constructor for bean serialisation support.
PropertyEditBean(Object source, String propertyName, Object oldValue, Object newValue)
          Need a value constructor because constructors are not inherited.
 
Method Summary
 String getDescription()
          Returns a description of this type of UndoableEdit.
 Object getNewValue()
           
 Object getOldValue()
           
 Object getSource()
           
 void setNewValue(Object newNewValue)
           
 void setOldValue(Object newOldValue)
           
 void setSource(Object newSource)
           
 
Methods inherited from class dsto.dfc.swing.undo.PropertyEdit
getPresentationName, getPropertyName, getRedoPresentationName, getUndoPresentationName, redo, setPropertyName, setPropertyValue, undo, writeSource, writeValue
 
Methods inherited from class dsto.dfc.swing.undo.AbstractMonitoredEdit
canRedo, canUndo, clone, die, getIcon, getLargeIcon, getName, getParameterNames, getParameterValues, restoreContext, setParameterNames, setParameterValues
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, isSignificant, replaceEdit, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.swing.undo.UndoableEdit
addEdit, isSignificant, replaceEdit
 

Constructor Detail

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.

Method Detail

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