Package jmri.jmrit.conditional
Class ConditionalEditFrame.VariableTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.conditional.ConditionalEditFrame.VariableTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
- Enclosing class:
- ConditionalEditFrame
public class ConditionalEditFrame.VariableTableModel extends javax.swing.table.AbstractTableModel
Table model for State Variables in Edit Conditional pane.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
AND_COLUMN
static int
DELETE_COLUMN
static int
DESCRIPTION_COLUMN
static int
EDIT_COLUMN
static int
NOT_COLUMN
static int
ROWNUM_COLUMN
static int
STATE_COLUMN
static int
TRIGGERS_COLUMN
-
Constructor Summary
Constructors Constructor Description VariableTableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getColumnClass(int c)
int
getColumnCount()
java.lang.String
getColumnName(int col)
int
getPreferredWidth(int col)
int
getRowCount()
java.lang.Object
getValueAt(int row, int col)
boolean
isCellEditable(int r, int c)
void
setValueAt(java.lang.Object value, int row, int col)
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
ROWNUM_COLUMN
public static final int ROWNUM_COLUMN
- See Also:
- Constant Field Values
-
AND_COLUMN
public static final int AND_COLUMN
- See Also:
- Constant Field Values
-
NOT_COLUMN
public static final int NOT_COLUMN
- See Also:
- Constant Field Values
-
DESCRIPTION_COLUMN
public static final int DESCRIPTION_COLUMN
- See Also:
- Constant Field Values
-
STATE_COLUMN
public static final int STATE_COLUMN
- See Also:
- Constant Field Values
-
TRIGGERS_COLUMN
public static final int TRIGGERS_COLUMN
- See Also:
- Constant Field Values
-
EDIT_COLUMN
public static final int EDIT_COLUMN
- See Also:
- Constant Field Values
-
DELETE_COLUMN
public static final int DELETE_COLUMN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VariableTableModel
public VariableTableModel()
-
-
Method Detail
-
getColumnClass
public java.lang.Class<?> getColumnClass(int c)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
in classjavax.swing.table.AbstractTableModel
-
getColumnCount
public int getColumnCount()
-
getRowCount
public int getRowCount()
-
isCellEditable
public boolean isCellEditable(int r, int c)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
getColumnName
public java.lang.String getColumnName(int col)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
getPreferredWidth
public int getPreferredWidth(int col)
-
getValueAt
public java.lang.Object getValueAt(int row, int col)
-
setValueAt
public void setValueAt(java.lang.Object value, int row, int col)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
-