org.viewaframework.binding.core
Class LazyBeanAdapter<T>

java.lang.Object
  extended by org.viewaframework.binding.core.BasicBeanAdapter<T>
      extended by org.viewaframework.binding.core.LazyBeanAdapter<T>
Type Parameters:
T -
All Implemented Interfaces:
Adapter<T>, BeanAdapter<T>, Observable

public class LazyBeanAdapter<T>
extends BasicBeanAdapter<T>

This kind of bean adapter can delay the events until the commit() method is called.

Author:
Mario Garcia

Constructor Summary
LazyBeanAdapter(T source)
           
LazyBeanAdapter(T source, Boolean autoCommit)
           
LazyBeanAdapter(T source, String name)
           
 
Method Summary
 void commit()
           
 Boolean isAutoCommit()
           
 Boolean isCommited()
           
 void setAutoCommit(Boolean autoCommit)
           
 BasicBeanAdapter<T> setValue(String propertyName, Object value)
          Sets the property value
 
Methods inherited from class org.viewaframework.binding.core.BasicBeanAdapter
addPropertyChangeListener, equals, firePropertyChange, getName, getPropertyChangeListeners, getPropertyClass, getSource, getValue, getValueList, getValueMap, getValueSet, getValueString, hashCode, isSync, removePropertyChangeListener, setName, setSource, setValue, sync, sync, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LazyBeanAdapter

public LazyBeanAdapter(T source)
Parameters:
source -

LazyBeanAdapter

public LazyBeanAdapter(T source,
                       Boolean autoCommit)
Parameters:
source -
autoCommit -

LazyBeanAdapter

public LazyBeanAdapter(T source,
                       String name)
Parameters:
source -
name -
Method Detail

commit

public void commit()

isAutoCommit

public Boolean isAutoCommit()
Returns:

isCommited

public Boolean isCommited()
Returns:

setAutoCommit

public void setAutoCommit(Boolean autoCommit)
Parameters:
autoCommit -

setValue

public BasicBeanAdapter<T> setValue(String propertyName,
                                    Object value)
Description copied from interface: BeanAdapter
Sets the property value

Specified by:
setValue in interface BeanAdapter<T>
Overrides:
setValue in class BasicBeanAdapter<T>


Copyright © 2010. All Rights Reserved.