| java.lang.Object javax.swing.table.AbstractTableModel org.hsqldb.util.GridSwing
GridSwing | class GridSwing extends AbstractTableModel (Code) | | Simple table model to represent a grid of tuples.
New class based on Hypersonic SQL original
author: dmarshall@users version: 1.7.2 since: 1.7.0 |
Constructor Summary | |
public | GridSwing() Default constructor. |
GridSwing | public GridSwing()(Code) | | Default constructor.
|
addRow | public void addRow(Object[] r)(Code) | | Append a tuple to the end of the table.
|
autoSizeTableColumns | public static void autoSizeTableColumns(JTable table)(Code) | | |
clear | public void clear()(Code) | | Remove data from all cells in the table (without
affecting the current headings).
|
getColumnCount | public int getColumnCount()(Code) | | Get the number of columns.
|
getColumnName | public String getColumnName(int i)(Code) | | Get the name for the specified column.
|
getData | public Vector getData()(Code) | | Get the current table data.
Each row is represented as a String[]
with a single non-null value in the 0-relative
column position.
The first row is at offset 0, the nth row at offset n etc.
|
getHead | public Object[] getHead()(Code) | | Get the current column headings.
|
getRowCount | public int getRowCount()(Code) | | Get the number of rows currently in the table.
|
getValueAt | public Object getValueAt(int row, int col)(Code) | | Get the object at the specified cell location.
|
setHead | public void setHead(Object[] h)(Code) | | Set the name of the column headings.
|
|
|