public class ModeTransitionTableModel
extends javax.swing.table.AbstractTableModel
Constructor and Description |
---|
ModeTransitionTableModel(FSMActor model)
Construct the mode transition table for configuring an SCR Model.
|
Modifier and Type | Method and Description |
---|---|
void |
addRow()
Add a row.
|
void |
deleteRow(int selectedRow)
Delete a row.
|
int |
getColumnCount()
Get the column count.
|
java.lang.String |
getColumnName(int column)
Get the column name.
|
int |
getRowCount()
Return the row count.
|
java.lang.Object |
getValueAt(int arg0,
int arg1)
Get the value at a particular cell.
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Return true, indicating that the cell is editable.
|
void |
saveModel()
Save the model.
|
void |
setValueAt(java.lang.Object value,
int row,
int column)
Set that value of a cell.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
public ModeTransitionTableModel(FSMActor model)
model
- The model.public void addRow()
public void deleteRow(int selectedRow)
selectedRow
- The row to be deleted.public int getColumnCount()
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
column
- The column number.public int getRowCount()
public java.lang.Object getValueAt(int arg0, int arg1)
arg0
- The row.arg1
- The column.setValueAt(Object, int, int)
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
rowIndex
- The rowIndex, which is ignored in this base
class.columnIndex
- The columnIndex, which is ignored in this base
class.public void saveModel() throws IllegalActionException, NameDuplicationException
IllegalActionException
- If thrown while saving the model.NameDuplicationException
- If thrown while saving the model.public void setValueAt(java.lang.Object value, int row, int column)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
value
- The value to be set.row
- The index of the row.column
- The index of the column.getValueAt(int, int)