com.sptci.echo.binding
Class ModelPropertyChangeListener
java.lang.Object
com.sptci.PropertyChangeListener
com.sptci.echo.binding.PropertyChangeListener
com.sptci.echo.binding.ModelPropertyChangeListener
- All Implemented Interfaces:
- PropertyChangeListener, Serializable, EventListener
- Direct Known Subclasses:
- JDOModelPropertyChangeListener
public class ModelPropertyChangeListener
- extends PropertyChangeListener
- implements Serializable
A sub-class of PropertyChangeListener used to synchronise
changes made to properties in Echo2 UI components to the
PropertyChangeListener.bean java bean.
Copyright 2006 Sans Pareil Technologies, Inc.
- Version:
- $Id: ModelPropertyChangeListener.java 4553 2008-12-24 10:34:16Z rakesh $
- Author:
- Rakesh Vidyadharan 2006-01-22
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelPropertyChangeListener
public ModelPropertyChangeListener(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. Checks for valid Echo2
components and ignores all other mouse and keyboard
events.
- Specified by:
propertyChange in interface PropertyChangeListener- Overrides:
propertyChange in class PropertyChangeListener
- 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:
modify(java.lang.String, java.beans.PropertyChangeEvent)
modify
protected void modify(String name,
PropertyChangeEvent event)
- Modify the property with the specified
name with the
new value in the specified event.
- Parameters:
name - The name of the field that is to be modified.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 field with name in
PropertyChangeListener.bean.- See Also:
PropertyChangeListener.parseName(java.lang.String)