|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.PropertyChangeListener
com.sptci.echo.binding.PropertyChangeListener
public abstract class PropertyChangeListener
An implementation of PropertyChangeListener used
to synchronise changes made to properties in UI components or the
PropertyChangeListener.bean java bean with each other.
Copyright 2006 Sans Pareil Technologies, Inc.
| Field Summary |
|---|
| Fields inherited from class com.sptci.PropertyChangeListener |
|---|
bean, properties, typeMapping |
| Constructor Summary | |
|---|---|
protected |
PropertyChangeListener()
Default constructor. |
|
PropertyChangeListener(Object bean)
Create a new instance of the class using the specified java bean. |
| Method Summary | |
|---|---|
protected void |
modifyObject(PropertyChangeEvent event,
PropertyDescriptor descriptor)
Over-ridden to handle special events generated by the Echo2 framework. |
protected String |
parseName(String name)
Parse the field name specified, and remove any complex components used to set the name as actionCommands. |
protected void |
processList(List list,
PropertyChangeEvent event,
PropertyDescriptor descriptor)
Process a field with type List in PropertyChangeListener.bean. |
protected void |
processMap(Map map,
PropertyChangeEvent event,
PropertyDescriptor descriptor)
Process a field with type Map in PropertyChangeListener.bean. |
| Methods inherited from class com.sptci.PropertyChangeListener |
|---|
getBean, getProperties, initProperties, modifyPrimitive, objectFromString, propertyChange, setBean |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected PropertyChangeListener()
public PropertyChangeListener(Object bean)
throws IntrospectionException
bean - The data object which is to be managed.
IntrospectionException - If errors are encountered while
introspecting the PropertyChangeListener.bean class.| Method Detail |
|---|
protected void modifyObject(PropertyChangeEvent event,
PropertyDescriptor descriptor)
throws BindingException
CheckBox, AbstractList and
RadioButton components. These components must
be modelled as Map and List fields in
the PropertyChangeListener.bean.
modifyObject in class PropertyChangeListenerevent - A PropertyChangeEvent object that
contains the property to change and the old and new values.descriptor - A PropertyDescriptor object that
describes the property
BindingException - If errors are encountered while trying
to invoke the appropriate method.ReflectionUtility.fetchObject(java.lang.String, java.lang.Object),
processMap(java.util.Map, java.beans.PropertyChangeEvent, java.beans.PropertyDescriptor),
processList(java.util.List, java.beans.PropertyChangeEvent, java.beans.PropertyDescriptor)
protected void processMap(Map map,
PropertyChangeEvent event,
PropertyDescriptor descriptor)
Map in PropertyChangeListener.bean.
Adds an entry to the map using the name and value in the
event.
map - The map that is to be updated.event - A PropertyChangeEvent object that
contains the property to change and the old and new values.descriptor - A PropertyDescriptor object that
describes the property
protected void processList(List list,
PropertyChangeEvent event,
PropertyDescriptor descriptor)
List in PropertyChangeListener.bean.
Sets the value of the list entry at the appropriate index using
the values in the event.
list - The list that is to be updated.event - A PropertyChangeEvent object that
contains the property to change and the old and new values.descriptor - A PropertyDescriptor object that
describes the propertyprotected String parseName(String name)
actionCommands.
name - The name that is to be parsed.
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||