|
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
com.sptci.echo.binding.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 |
|---|
| Fields inherited from class com.sptci.PropertyChangeListener |
|---|
bean, properties, typeMapping |
| Constructor Summary | |
|---|---|
ViewPropertyChangeListener(Object bean)
Create a new instance of the listener for the specified object. |
|
| Method Summary | |
|---|---|
protected void |
processList(Object object,
PropertyChangeEvent event,
Field field)
Update AbstractList UI components. |
protected void |
processMap(Map map,
PropertyChangeEvent event)
Update ToggleButton UI components. |
void |
propertyChange(PropertyChangeEvent event)
Implementation of the event handling method. |
void |
setBean(Object bean)
Set PropertyChangeListener.bean. |
protected void |
updateListBox(ListBox listBox,
PropertyChangeEvent event)
Update a ListBox UI component. |
protected void |
updateSelectField(SelectField selectField,
PropertyChangeEvent event)
Process a SelectField UI component. |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewPropertyChangeListener(Object bean)
bean - The object whose fields are to be updated by
change events.setBean(java.lang.Object)| Method Detail |
|---|
public void propertyChange(PropertyChangeEvent event)
throws BindingException
propertyChange in interface 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)
protected void processList(Object object,
PropertyChangeEvent event,
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(SelectField selectField,
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(ListBox listBox,
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(Map map,
PropertyChangeEvent event)
ToggleButton UI components.
map - The map that contains the name and selected state
of the toggle button.event - The property change event.public void setBean(Object bean)
PropertyChangeListener.bean.
setBean in class PropertyChangeListenerbean - The value to set.introspect()
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||