public class ModeTransitionTableModel
extends javax.swing.table.AbstractTableModel
| Red (pd) |
| Red (pd) |
| 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, removeTableModelListenerpublic ModeTransitionTableModel(FSMActor model)
model - The model.public void addRow()
public void deleteRow(int selectedRow)
public int getColumnCount()
public java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumn - The column number.public int getRowCount()
public java.lang.Object getValueAt(int arg0,
int arg1)
arg0 - The row.arg1 - The column.public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelrowIndex - 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.TableModelsetValueAt in class javax.swing.table.AbstractTableModelvalue - The value to be set.row - The index of the row.column - The index of the column.