R
- type of the row object/beanpublic class ReflectiveColumnPropertyAccessor<R> extends Object implements IColumnPropertyAccessor<R>
Constructor and Description |
---|
ReflectiveColumnPropertyAccessor(String[] propertyNames) |
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount() |
int |
getColumnIndex(String propertyName) |
String |
getColumnProperty(int columnIndex) |
Object |
getDataValue(R rowObj,
int columnIndex) |
void |
setDataValue(R rowObj,
int columnIndex,
Object newValue) |
public ReflectiveColumnPropertyAccessor(String[] propertyNames)
propertyNames
- of the members of the row beanpublic int getColumnCount()
getColumnCount
in interface IColumnAccessor<R>
public Object getDataValue(R rowObj, int columnIndex)
getDataValue
in interface IColumnAccessor<R>
public void setDataValue(R rowObj, int columnIndex, Object newValue)
setDataValue
in interface IColumnAccessor<R>
public String getColumnProperty(int columnIndex)
getColumnProperty
in interface IColumnPropertyResolver
columnIndex
- i.e the order of the column in the backing beanpublic int getColumnIndex(String propertyName)
getColumnIndex
in interface IColumnPropertyResolver
propertyName
- i.e the name of the column in the backing beanCopyright © 2013. All Rights Reserved.