net.sf.doolin.tabular.support
Class PropertyTabularColumn<T>

java.lang.Object
  extended by net.sf.doolin.tabular.support.AbstractTabularColumn<T>
      extended by 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

Constructor Summary
PropertyTabularColumn(String title, String propertyPath)
          Constructor
 
Method Summary
 Object getValue(T item)
          Computes the column value for an item
 
Methods inherited from class net.sf.doolin.tabular.support.AbstractTabularColumn
getTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyTabularColumn

public PropertyTabularColumn(String title,
                             String propertyPath)
Constructor

Parameters:
title - Title of the column
propertyPath - Path to the property of the row item to take as the column value
Method Detail

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.