public static class ArrayOfRecordsPane.ArrayAsTable
extends javax.swing.table.AbstractTableModel
Constructor and Description |
---|
ArrayAsTable(ArrayToken array)
Construct a table for the specified array to display
all fields in the records contained by the array.
|
ArrayAsTable(ArrayToken array,
ArrayToken columns)
Construct a table for the specified array to display
the fields given by columns of records in the specified
array.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount()
Get the column count of the Matrix.
|
java.lang.String |
getColumnName(int columnIndex)
Get the name of the specified column, which is the column
index as a string.
|
int |
getRowCount()
Get the row count of the Matrix.
|
java.lang.Object |
getValueAt(int row,
int column)
Get the specified entry as a String.
|
void |
removeRow(int row)
Remove the specified row from the table.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
ArrayAsTable(ArrayToken array)
array
- An array of record tokens to display.ArrayAsTable(ArrayToken array, ArrayToken columns)
array
- An array of record tokens to display.columns
- An array of string tokens giving the names
of fields to display, or null to display all the fields.public int getColumnCount()
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
columnIndex
- The index of the column.public int getRowCount()
public java.lang.Object getValueAt(int row, int column)
row
- The row number.column
- The column number.public void removeRow(int row)
row
- The row to remove, starting with index 0.