|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
ace.gui.InstancesTableModel
public class InstancesTableModel
A TableModel used for displaying instances derived from DataSet and SegmentedClassification objects.
Provides a method to fill the table row by row after deleting everything in it. Also makes all cells editable.
Field Summary |
---|
Fields inherited from class javax.swing.table.DefaultTableModel |
---|
columnIdentifiers, dataVector |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Method Summary | |
---|---|
void |
fillTable(DataBoard data_board,
java.lang.String[] identifiers_to_expand,
boolean display_meta_data,
boolean display_feature_values)
Deletes everything in the table and then fills it up one row at a time based on the given DataBoard and booleans. |
java.lang.Class |
getColumnClass(int column)
Returns the type of class used for each column. |
boolean |
isCellEditable(int row,
int column)
Returns true for all cells, thereby indicating that all cells are editable. |
Methods inherited from class javax.swing.table.DefaultTableModel |
---|
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void fillTable(DataBoard data_board, java.lang.String[] identifiers_to_expand, boolean display_meta_data, boolean display_feature_values) throws java.lang.Exception
data_board
- Data to place in the table.identifiers_to_expand
- The names of the top-level instances
that should be expanded to show
sub-sections. If this is null, then none
are expanded. Any instances that are not
mentioned are not expanded. The names of
instances correspond to the identifier
field of SegmentedClassification or
DataSet objects.display_meta_data
- Whether or not to include on the table
additional meta-data contained in the
SegmentedClassification in the
DataBoard.display_feature_values
- Whether or not to include on the table
actual feature values stored in the
DataBoard.
java.lang.Exception
public boolean isCellEditable(int row, int column)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.DefaultTableModel
row
- The row whose value is to be queried.column
- The column whose value is to be queried.
public java.lang.Class getColumnClass(int column)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
column
- Column to check.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |