org.springframework.richclient.widget.table
Class SimpleWriter

Show UML class diagram
java.lang.Object
  extended by org.springframework.richclient.widget.table.SimpleAccessor
      extended by org.springframework.richclient.widget.table.SimpleWriter
All Implemented Interfaces:
Accessor, Writer

public class SimpleWriter
extends SimpleAccessor
implements Writer

Basic implementation of a Writer.

Since:
0.5.0
Author:
Jan Hoskens

Constructor Summary
SimpleWriter(Class<?> beanClass, String propertyName)
          Constructor.
 
Method Summary
 void setValue(Object toEntity, Object newValue)
          Set the value on a specific target entity.
 
Methods inherited from class org.springframework.richclient.widget.table.SimpleAccessor
getPropertyType, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.richclient.widget.table.Accessor
getPropertyType, getValue
 

Constructor Detail

SimpleWriter

public SimpleWriter(Class<?> beanClass,
                    String propertyName)
Constructor. Uses the return type of the getter to find a matching setter.

Parameters:
beanClass - the type of the bean.
propertyName - name of the property.
See Also:
SimpleAccessor.SimpleAccessor(Class, String)
Method Detail

setValue

public void setValue(Object toEntity,
                     Object newValue)
              throws IllegalAccessException,
                     InvocationTargetException
Set the value on a specific target entity.

Specified by:
setValue in interface Writer
Parameters:
toEntity - the entity on which the property has to be changed.
newValue - the new value of the property.
Throws:
IllegalAccessException
InvocationTargetException


Copyright © 2004-2009 The Spring Framework. All Rights Reserved.