net.sf.doolin.tabular.support
Class PropertyTabularColumn<T>
java.lang.Object
net.sf.doolin.tabular.support.AbstractTabularColumn<T>
net.sf.doolin.tabular.support.PropertyTabularColumn<T>
- Type Parameters:
T - Type of data in the rows
- All Implemented Interfaces:
- TabularColumn<T>
public class PropertyTabularColumn<T>
- extends AbstractTabularColumn<T>
Column based on a property of an item.
- Author:
- Damien Coraboeuf
|
Method Summary |
Object |
getValue(T item)
Computes the column value for an item |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyTabularColumn
public PropertyTabularColumn(String title,
String propertyPath)
- Constructor
- Parameters:
title - Title of the columnpropertyPath - Path to the property of the row item to take as the column
value
getValue
public Object getValue(T item)
- Description copied from interface:
TabularColumn
- Computes the column value for an item
- Parameters:
item - Row item
- Returns:
- Value for this column
Copyright © 2011. All Rights Reserved.