|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.PropertyChangeListener
com.sptci.echo2.PropertyChangeListener
com.sptci.echo2.ViewPropertyChangeListener
public class ViewPropertyChangeListener
The PropertyChangeListener for change events fired
by java beans to update Echo2 UI container classes
(represented by PropertyChangeListener.bean).
Copyright 2006 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
private java.util.HashMap<java.lang.String,java.lang.reflect.Field> |
fields
A map of all the Fields in the PropertyChangeListener.bean. |
private static java.util.logging.Logger |
logger
The logger used to log errors/warnings to. |
private java.util.HashMap<java.lang.reflect.Field,java.lang.reflect.Method> |
methods
A map of the appropriate methods to be invoked for the elements in fields. |
| Fields inherited from class com.sptci.PropertyChangeListener |
|---|
bean, properties, typeMapping |
| Constructor Summary | |
|---|---|
ViewPropertyChangeListener(java.lang.Object bean)
Create a new instance of the listener for the specified object. |
|
| Method Summary | |
|---|---|
private void |
introspect()
Introspect the fields of PropertyChangeListener.bean and populate the
fields and methods fields. |
protected void |
processList(java.lang.Object object,
java.beans.PropertyChangeEvent event,
java.lang.reflect.Field field)
Update AbstractList UI components. |
protected void |
processMap(java.util.Map map,
java.beans.PropertyChangeEvent event)
Update ToggleButton UI components. |
void |
propertyChange(java.beans.PropertyChangeEvent event)
Implementation of the event handling method. |
void |
setBean(java.lang.Object bean)
Set PropertyChangeListener.bean. |
protected void |
updateListBox(nextapp.echo2.app.ListBox listBox,
java.beans.PropertyChangeEvent event)
Update a ListBox UI component. |
protected void |
updateSelectField(nextapp.echo2.app.SelectField selectField,
java.beans.PropertyChangeEvent event)
Process a SelectField UI component. |
| Methods inherited from class com.sptci.echo2.PropertyChangeListener |
|---|
modifyObject, parseName, processList, processMap |
| Methods inherited from class com.sptci.PropertyChangeListener |
|---|
getBean, getProperties, initProperties, modifyPrimitive, objectFromString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final transient java.util.logging.Logger logger
private transient java.util.HashMap<java.lang.String,java.lang.reflect.Field> fields
Fields in the PropertyChangeListener.bean.
private transient java.util.HashMap<java.lang.reflect.Field,java.lang.reflect.Method> methods
fields.
| Constructor Detail |
|---|
public ViewPropertyChangeListener(java.lang.Object bean)
bean - The object whose fields are to be updated by
change events.setBean(java.lang.Object)| Method Detail |
|---|
public void propertyChange(java.beans.PropertyChangeEvent event)
throws BindingException
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class PropertyChangeListenerevent - A PropertyChangeEvent object describing
the event source and the property that has changed.
BindingException - If errors are encountered while
attempting to modify the property in PropertyChangeListener.bean.PropertyChangeListener.parseName(java.lang.String),
processList(java.lang.Object, java.beans.PropertyChangeEvent, java.lang.reflect.Field),
processMap(java.util.Map, java.beans.PropertyChangeEvent)
private void introspect()
throws BindingException
PropertyChangeListener.bean and populate the
fields and methods fields.
BindingException - If errors are encountered while
introspecting the PropertyChangeListener.bean.
protected void processList(java.lang.Object object,
java.beans.PropertyChangeEvent event,
java.lang.reflect.Field field)
throws BindingException
AbstractList UI components.
object - The UI component that is to be updated.event - A PropertyChangeEvent object describing
the event source and the property that has changed.field - The field that represents the UI component that is
to be updated.
BindingException - If errors are encountered while
attempting to modify the property in PropertyChangeListener.bean.
protected void updateSelectField(nextapp.echo2.app.SelectField selectField,
java.beans.PropertyChangeEvent event)
SelectField UI component.
selectField - The UI component that is to be updated.event - A PropertyChangeEvent object describing
the event source and the property that has changed.
protected void updateListBox(nextapp.echo2.app.ListBox listBox,
java.beans.PropertyChangeEvent event)
ListBox UI component.
listBox - The ListBox UI component that is to be updated.event - A PropertyChangeEvent object describing
the event source and the property that has changed.
protected void processMap(java.util.Map map,
java.beans.PropertyChangeEvent event)
ToggleButton UI components.
map - The map that contains the name and selected state
of the toggle button.public void setBean(java.lang.Object bean)
PropertyChangeListener.bean.
setBean in class PropertyChangeListenerbean - The value to set.introspect()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||