|
||||||||||
| 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
org.simbrain.world.dataworld.TableModel
public class TableModel
TableModel extends DefaultTableModel so that the addRow and addColumn commands are available.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.DefaultTableModel |
|---|
columnIdentifiers, dataVector |
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
TableModel(DataWorld dataWorld)
Create a new table model for the specified data world. |
|
TableModel(String[][] data)
Create a new table model with the specified data. |
|
| Method Summary | |
|---|---|
void |
addMatrix(String[][] data)
Add a matrix of string data to the table, as doubles. |
Vector |
getColumnIdentifiers()
Return a vector of column identifiers. |
boolean |
isCellEditable(int row,
int column)
|
Vector |
newRow()
Return a new vector to be used in addRow. |
void |
removeAllRows()
Clear the table. |
void |
removeColumn(int index)
Remove a column at the specified point. |
void |
zeroFill()
Fills the table with zeros. |
void |
zeroFillNew()
Same as zerofill, but only fills the last column. |
| 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, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableModel(DataWorld dataWorld)
dataWorld - data worldpublic TableModel(String[][] data)
data - data| Method Detail |
|---|
public Vector newRow()
public void zeroFill()
public void zeroFillNew()
public void removeAllRows()
public void addMatrix(String[][] data)
data - the matrix of string doubles to addpublic void removeColumn(int index)
index - column to remove
public boolean isCellEditable(int row,
int column)
isCellEditable in interface TableModelisCellEditable in class DefaultTableModelDefaultTableModelpublic Vector getColumnIdentifiers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||