com.sptci.echo2
Class ModelUpdater

java.lang.Object
  extended by com.sptci.echo2.Updater
      extended by com.sptci.echo2.ModelUpdater
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
JDOModelUpdater

public class ModelUpdater
extends Updater
implements java.io.Serializable

An updater used to update JavaBean objects from their associated UI containers.

Copyright 2006 Sans Pareil Technologies, Inc.

Version:
$Id: ModelUpdater.java,v 1.3 2006/02/15 00:48:26 rakesh Exp $
Author:
Rakesh Vidyadharan 2006-02-08
See Also:
Serialized Form

Field Summary
private static java.util.logging.Logger logger
          The logger used to log errors/warnings to.
 
Fields inherited from class com.sptci.echo2.Updater
bean, uiContainer
 
Constructor Summary
ModelUpdater(java.lang.Object uiContainer, java.lang.Object bean)
          Create a new instance with the specified UI container and java bean.
 
Method Summary
 void update()
          Update the fields of the Updater.bean with the data in similarly named fields in Updater.uiContainer.
 
Methods inherited from class com.sptci.echo2.Updater
beanValues, getBean, getUiContainer, setBean, setUiContainer, uiValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final transient java.util.logging.Logger logger
The logger used to log errors/warnings to.

Constructor Detail

ModelUpdater

public ModelUpdater(java.lang.Object uiContainer,
                    java.lang.Object bean)
Create a new instance with the specified UI container and java bean.

Parameters:
uiContainer - The Updater.uiContainer to use.
bean - The Updater.bean to use.
Method Detail

update

public void update()
Update the fields of the Updater.bean with the data in similarly named fields in Updater.uiContainer.

Specified by:
update in class Updater
Throws:
BindingException - If errors are encountered while accessing or setting the fields.
See Also:
ReflectionUtility.fetchField(java.lang.String, java.lang.Object), ReflectionUtility.fetchMethod(java.lang.reflect.Field, java.lang.String, java.lang.Class[])


Copyright © 2006 Sans Pareil Technologies, Inc. All Rights Reserved.