|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.faban.common.TableModel
public class TableModel
A table model used for representing table results both in the Faban results and in the web interface.
Constructor Summary | |
---|---|
TableModel(int columns)
Constructs a TableModel. |
|
TableModel(int columns,
int rowInitCapacity)
Constructs a TableModel. |
Method Summary | |
---|---|
int |
columns()
Obtains the number of columns the table is defined for. |
Comparable |
getField(int row,
int column)
Obtains the field at the given row and column index. |
String |
getHeader(int column)
Obtains the header for a given column. |
String[] |
getHeaders()
Obtains all column headers. |
Comparable[] |
getRow(int row)
Ontains all fields in a given row. |
Comparable[] |
newRow()
Adds a new row to the table model. |
int |
rows()
Obtains the number of rows currently in the table. |
void |
setHeader(int column,
String header)
Sets the header for a given column. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableModel(int columns)
columns
- The number of columns in the tablepublic TableModel(int columns, int rowInitCapacity)
columns
- The number of columns in the tablerowInitCapacity
- The initial row capacity of the tableMethod Detail |
---|
public int columns()
public Comparable getField(int row, int column)
row
- The row indexcolumn
- The column index
public String getHeader(int column)
column
- The column to get the header
public String[] getHeaders()
public Comparable[] getRow(int row)
row
- The row
public Comparable[] newRow()
public int rows()
public void setHeader(int column, String header)
column
- The columnheader
- The header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |