com.sptci.echo.binding
Class JDOModelPropertyChangeListener
java.lang.Object
com.sptci.PropertyChangeListener
com.sptci.echo.binding.PropertyChangeListener
com.sptci.echo.binding.ModelPropertyChangeListener
com.sptci.echo.binding.JDOModelPropertyChangeListener
- All Implemented Interfaces:
- PropertyChangeListener, Serializable, EventListener
public class JDOModelPropertyChangeListener
- extends ModelPropertyChangeListener
- implements Serializable
A sub-class of PropertyChangeListener used to synchronise
changes made to properties in UI components to the PropertyChangeListener.bean
JDO object.
Copyright 2006 Sans Pareil Technologies, Inc.
- Version:
- $Id: JDOModelPropertyChangeListener.java 4553 2008-12-24 10:34:16Z rakesh $
- Author:
- Rakesh Vidyadharan 2006-05-05
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDOModelPropertyChangeListener
public JDOModelPropertyChangeListener(Object bean)
throws IntrospectionException
- Create a new instance of the class using the specified java bean.
- Parameters:
bean - The data object which is to be managed.
- Throws:
IntrospectionException - If errors are encountered while
introspecting the PropertyChangeListener.bean class.
propertyChange
public void propertyChange(PropertyChangeEvent event)
- Over-riddent implementation of the method defined in
PropertyChangeListener. Start a new JDO transaction
, apply the changes using ModelPropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent), and then
commit the transaction.
- Specified by:
propertyChange in interface PropertyChangeListener- Overrides:
propertyChange in class ModelPropertyChangeListener
- Parameters:
event - A PropertyChangeEvent object describing
the event source and the property that has changed.
- Throws:
BindingException - If errors are encountered while
attempting to modify the PropertyChangeListener.bean.- See Also:
ModelPropertyChangeListener.modify(java.lang.String, java.beans.PropertyChangeEvent)