|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.echo2.Updater
public abstract class Updater
An abstract updater used to update UI containers or
JavaBean objects from one another.
Copyright 2006 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
protected java.lang.Object |
bean
The java bean that contains the data to use to update the uiContainer. |
private static java.util.logging.Logger |
logger
The logger used to log errors/warnings to. |
protected java.lang.Object |
uiContainer
The UI container that is to be updated. |
| Constructor Summary | |
|---|---|
protected |
Updater()
Default constructor. |
protected |
Updater(java.lang.Object uiContainer,
java.lang.Object bean)
Create a new instance with the specified UI container and java bean. |
| Method Summary | |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
beanValues()
Fetch the values of all the fields in bean that have
an accessor method conforming to JavaBean naming
convention. |
java.lang.Object |
getBean()
Returns bean. |
java.lang.Object |
getUiContainer()
Returns uiContainer. |
void |
setBean(java.lang.Object bean)
Set bean. |
void |
setUiContainer(java.lang.Object uiContainer)
Set uiContainer. |
protected java.util.Map<java.lang.String,java.lang.Object> |
uiValues()
Fetch the values of all the fields in uiContainer. |
abstract void |
update()
Update the fields of the desired component with the data contained in similarly named fields in the other component. |
| 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
protected java.lang.Object uiContainer
protected java.lang.Object bean
uiContainer.
| Constructor Detail |
|---|
protected Updater()
protected Updater(java.lang.Object uiContainer,
java.lang.Object bean)
uiContainer - The uiContainer to use.bean - The bean to use.| Method Detail |
|---|
protected java.util.Map<java.lang.String,java.lang.Object> beanValues()
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
bean that have
an accessor method conforming to JavaBean naming
convention.
key and
the field value as value.
java.lang.IllegalAccessException - If a custom security policy
restricts access to the bean fields.
java.lang.reflect.InvocationTargetException - If the accessor method for
the field could not be invoked successfully.ReflectionUtility.fetchFields(java.lang.Object),
ReflectionUtility.fetchMethod( Object, String, Class[] )
protected java.util.Map<java.lang.String,java.lang.Object> uiValues()
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
uiContainer.
Convert the values of the UI components to the mapping scheme
used in bean generation.
key and
the field value as value.
java.lang.IllegalAccessException - If a custom security policy
restricts access to the bean fields.
java.lang.reflect.InvocationTargetException - If the accessor method for
the field could not be invoked successfully.ReflectionUtility.fetchFields(java.lang.Object),
ReflectionUtility.fetchMethod( Object, String, Class[] )public abstract void update()
public final java.lang.Object getUiContainer()
uiContainer.
public final void setUiContainer(java.lang.Object uiContainer)
uiContainer.
uiContainer - The value to set.public final java.lang.Object getBean()
bean.
public final void setBean(java.lang.Object bean)
bean.
bean - The value to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||