public class ICTableModel
extends javax.swing.table.AbstractTableModel
Constructor and Description |
---|
ICTableModel(boolean edit)
Constructor that creates a new table model for initial condition
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount()
Returns the number of columns, which is 2.
|
java.lang.String |
getColumnName(int columnIndex)
Returns the name of the column
|
int |
getRowCount()
Returns the number of rows.
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value at the specified cell
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns whether the cell is editable, which is false in data tab
|
void |
setValueAt(java.lang.Object text,
int rowIndex,
int columnIndex)
Sets the value at the specified cell
|
void |
updateSolverParameters(SolverParameters params)
Update the solver parameters to the given one
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
public ICTableModel(boolean edit)
edit
- whether the initial condition should be editablepublic void updateSolverParameters(SolverParameters params)
params
- the new solver paramterspublic int getRowCount()
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 column indexpublic boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
rowIndex
- the row indexcolumnIndex
- the column indexpublic java.lang.Object getValueAt(int rowIndex, int columnIndex)
rowIndex
- the row indexcolumnIndex
- the column indexpublic void setValueAt(java.lang.Object text, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
text
- the value to set torowIndex
- the row indexcolumnIndex
- the column index