net.sf.statcvs.reportmodel
Class GenericColumn
public abstract class GenericColumn
A generic column with a text header and a text total. Each cell contains
an Object. The renderCell method must be implemented by subclasses.
$Id: GenericColumn.java,v 1.2 2008/04/02 11:22:14 benoitx Exp $GenericColumn(String title) - Creates a new GenericColumn with the given head
|
GenericColumn
public GenericColumn(String title)
Creates a new GenericColumn with the given head
title
- the head of the column
addValue
public void addValue(Object value)
Adds a value to this column (in a new row)
getValue
public Object getValue(int rowIndex)
Returns a value of the column
rowIndex
- the row, starting at 0
setTotal
public void setTotal(String value)
Sets the total for this column
value
- the total for this column