SPT Core API

com.sptci.echo.binding
Class ModelPropertyChangeListener

java.lang.Object
  extended by com.sptci.PropertyChangeListener
      extended by com.sptci.echo.binding.PropertyChangeListener
          extended by 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

Field Summary
 
Fields inherited from class com.sptci.PropertyChangeListener
bean, properties, typeMapping
 
Constructor Summary
ModelPropertyChangeListener(Object bean)
          Create a new instance of the class using the specified java bean.
 
Method Summary
protected  void modify(String name, PropertyChangeEvent event)
          Modify the property with the specified name with the new value in the specified event.
 void propertyChange(PropertyChangeEvent event)
          Over-riddent implementation of the method defined in PropertyChangeListener.
 
Methods inherited from class com.sptci.echo.binding.PropertyChangeListener
modifyObject, parseName, processList, processMap
 
Methods inherited from class com.sptci.PropertyChangeListener
getBean, getProperties, initProperties, modifyPrimitive, objectFromString, setBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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)

SPT Core API