com.sptci.echo2
Class ModelPropertyChangeListener
java.lang.Object
com.sptci.PropertyChangeListener
com.sptci.echo2.PropertyChangeListener
com.sptci.echo2.ModelPropertyChangeListener
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener
- Direct Known Subclasses:
- JDOModelPropertyChangeListener
public class ModelPropertyChangeListener
- extends PropertyChangeListener
- implements java.io.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,v 1.1 2006/02/13 23:07:28 rakesh Exp $
- Author:
- Rakesh Vidyadharan 2006-01-22
- See Also:
- Serialized Form
|
Field Summary |
private static java.util.logging.Logger |
logger
The logger used to log errors to |
|
Constructor Summary |
ModelPropertyChangeListener(java.lang.Object bean)
Create a new instance of the class using the specified java bean. |
|
Method Summary |
protected void |
modify(java.lang.String name,
java.beans.PropertyChangeEvent event)
Modify the property with the specified name with the
new value in the specified event. |
void |
propertyChange(java.beans.PropertyChangeEvent event)
Over-riddent implementation of the method defined in
PropertyChangeListener. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final transient java.util.logging.Logger logger
- The logger used to log errors to
ModelPropertyChangeListener
public ModelPropertyChangeListener(java.lang.Object bean)
throws java.beans.IntrospectionException
- Create a new instance of the class using the specified java bean.
- Parameters:
bean - The data object which is to be managed.
- Throws:
java.beans.IntrospectionException - If errors are encountered while
introspecting the PropertyChangeListener.bean class.
propertyChange
public void propertyChange(java.beans.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 java.beans.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(java.lang.String name,
java.beans.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)
Copyright © 2006 Sans Pareil Technologies, Inc. All Rights Reserved.