|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.statcvs.reportmodel.Column
public abstract class Column
An abstract base class for table columns. Concrete Sublasses implement different behaviour for different data types.
Constructor Summary | |
---|---|
Column()
|
Method Summary | |
---|---|
abstract int |
getRows()
Return number of rows that have been added to this column |
abstract void |
renderCell(int rowIndex,
TableCellRenderer renderer)
Renders a row of the column into a TableCellRenderer by calling one of its TableCellRenderer.renderCell(java.lang.String) methods |
abstract void |
renderHead(TableCellRenderer renderer)
Renders the head of the column into a TableCellRenderer by calling one of its TableCellRenderer.renderCell(java.lang.String) methods |
abstract void |
renderTotal(TableCellRenderer renderer)
Renders the footer of the column into a TableCellRenderer by calling one of its TableCellRenderer.renderCell(java.lang.String)
methods. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Column()
Method Detail |
---|
public abstract int getRows()
public abstract void renderHead(TableCellRenderer renderer)
TableCellRenderer.renderCell(java.lang.String)
methods
renderer
- the TableCellRenderer to use
TODO: this is probably unnecessary; better add a getTitle methodpublic abstract void renderCell(int rowIndex, TableCellRenderer renderer)
TableCellRenderer.renderCell(java.lang.String)
methods
rowIndex
- the row number, starting at 0renderer
- the TableCellRenderer to usepublic abstract void renderTotal(TableCellRenderer renderer)
TableCellRenderer.renderCell(java.lang.String)
methods. The footer usually contains some kind of total for the column.
renderer
- the TableCellRenderer to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |