001 package org.springframework.richclient.widget.table;
002
003 import java.lang.reflect.InvocationTargetException;
004
005 /**
006 * Writer interface: extends the {@link Accessor} to allow write-access.
007 *
008 * @author Jan Hoskens
009 * @since 0.5.0
010 */
011 public interface Writer extends Accessor
012 {
013
014 /**
015 * Set the value on a specific target entity.
016 *
017 * @param toEntity
018 * the entity on which the property has to be changed.
019 * @param newValue
020 * the new value of the property.
021 * @throws IllegalAccessException
022 * @throws InvocationTargetException
023 */
024 void setValue(Object toEntity, Object newValue) throws IllegalAccessException, InvocationTargetException;
025 }