|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
ptolemy.actor.gui.ArrayOfRecordsPane.ArrayAsTable
public static class ArrayOfRecordsPane.ArrayAsTable
This class provides an implementation of the TableModel interface for viewing an array of records.
| Field Summary | |
|---|---|
private ArrayToken |
_array
The array for which a Table Model is created. |
private java.util.List<java.lang.String> |
_columns
The column names found in the array. |
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
ArrayOfRecordsPane.ArrayAsTable(ArrayToken array)
Construct a table for the specified array to display all fields in the records contained by the array. |
|
ArrayOfRecordsPane.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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private ArrayToken _array
private java.util.List<java.lang.String> _columns
| Constructor Detail |
|---|
ArrayOfRecordsPane.ArrayAsTable(ArrayToken array)
array - An array of record tokens to display.
ArrayOfRecordsPane.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.| Method Detail |
|---|
public int getColumnCount()
public java.lang.String getColumnName(int columnIndex)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumnIndex - 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||