|
ReportCat 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The TableDataModel
represents the data of the table. It specifies the number of cells, its values and its types.
Method Summary | |
int |
getColumnCount()
Returns the number of columns. |
java.lang.Object |
getFooterAt(int columnIndex)
Returns the value of a footer cell. |
java.lang.Object |
getFooterTypeAt(int columnIndex)
Returns the type of a footer cell. |
java.lang.Object |
getHeaderAt(int columnIndex)
Returns the value of a header cell. |
java.lang.Object |
getHeaderTypeAt(int columnIndex)
Returns the type of a header cell. |
int |
getRowCount()
Returns the number of data rows without header and footer. |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value of a data cell. |
java.lang.Object |
getValueTypeAt(int rowIndex,
int columnIndex)
The type of a cell is typically used to find and configure the TableCellDrawer . |
boolean |
hasFooter()
Returns true, if this model has a footer. |
boolean |
hasHeader()
Returns true, if this model has a header. |
Method Detail |
public int getRowCount()
public int getColumnCount()
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
rowIndex
- The index of the row. It must be >= 0 and < getRowCount()
.columnIndex
- The index of the column. It must be >= 0 and < getColumnCount()
.
public java.lang.Object getValueTypeAt(int rowIndex, int columnIndex)
TableCellDrawer
. It must be usable as a hash key.
rowIndex
- The index of the row. It must be >= 0 and < getRowCount()
.columnIndex
- The index of the column. It must be >= 0 and < getColumnCount()
.
public boolean hasHeader()
public java.lang.Object getHeaderAt(int columnIndex)
hasHeader()
returns true
.
columnIndex
- The index of the column. It must be >= 0 and < getColumnCount()
.
public java.lang.Object getHeaderTypeAt(int columnIndex)
TableCellDrawer
.
It must be usable as a hash key. This method can only be called, if hasHeader()
returns true
.
columnIndex
- The index of the column. It must be >= 0 and < getColumnCount()
.
public boolean hasFooter()
public java.lang.Object getFooterAt(int columnIndex)
columnIndex
- The index of the column. It must be >= 0 and < getColumnCount()
.
public java.lang.Object getFooterTypeAt(int columnIndex)
hasFooter()
returns true
.
columnIndex
- The index of the column. It must be >= 0 and < getColumnCount()
.
|
ReportCat 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |