Package jmri.jmrix.acela.nodeconfig
Class NodeConfigFrame.SensorConfigModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrix.acela.nodeconfig.NodeConfigModel
-
- jmri.jmrix.acela.nodeconfig.NodeConfigFrame.SensorConfigModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
- Enclosing class:
- NodeConfigFrame
public class NodeConfigFrame.SensorConfigModel extends NodeConfigModel
Set up table for selecting sensor default parameters for Sentry or TBrain nodes- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
POLARITY_COLUMN
static int
SENSORADDRESS_COLUMN
static int
SENSORCIRCUITADDRESS_COLUMN
static int
THRESHOLD_COLUMN
static int
TYPE_COLUMN
-
Fields inherited from class jmri.jmrix.acela.nodeconfig.NodeConfigModel
editmode, numrows
-
-
Constructor Summary
Constructors Constructor Description SensorConfigModel()
-
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 c)
boolean
getEditMode()
int
getRowCount()
java.lang.Object
getValueAt(int r, int c)
boolean
isCellEditable(int r, int c)
void
setEditMode(boolean b)
void
setNumRows(int r)
void
setValueAt(java.lang.Object type, int r, int c)
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
SENSORCIRCUITADDRESS_COLUMN
public static final int SENSORCIRCUITADDRESS_COLUMN
- See Also:
- Constant Field Values
-
TYPE_COLUMN
public static final int TYPE_COLUMN
- See Also:
- Constant Field Values
-
POLARITY_COLUMN
public static final int POLARITY_COLUMN
- See Also:
- Constant Field Values
-
THRESHOLD_COLUMN
public static final int THRESHOLD_COLUMN
- See Also:
- Constant Field Values
-
SENSORADDRESS_COLUMN
public static final int SENSORADDRESS_COLUMN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SensorConfigModel
public SensorConfigModel()
-
-
Method Detail
-
getColumnName
public java.lang.String getColumnName(int c)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
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()
- Specified by:
getRowCount
in interfacejavax.swing.table.TableModel
- Overrides:
getRowCount
in classNodeConfigModel
-
setNumRows
public void setNumRows(int r)
- Overrides:
setNumRows
in classNodeConfigModel
-
setEditMode
public void setEditMode(boolean b)
- Overrides:
setEditMode
in classNodeConfigModel
-
getEditMode
public boolean getEditMode()
- Overrides:
getEditMode
in classNodeConfigModel
-
getValueAt
public java.lang.Object getValueAt(int r, int c)
-
setValueAt
public void setValueAt(java.lang.Object type, int r, int c)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
isCellEditable
public boolean isCellEditable(int r, int c)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
-