Package jmri.jmrix.acela.nodeconfig
Class NodeConfigFrame.OutputConfigModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrix.acela.nodeconfig.NodeConfigModel
-
- jmri.jmrix.acela.nodeconfig.NodeConfigFrame.OutputConfigModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
- Enclosing class:
- NodeConfigFrame
public class NodeConfigFrame.OutputConfigModel extends NodeConfigModel
Set up table for selecting output default parameters for Dash-8 or TBrain nodes- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
INITIALSTATE_COLUMN
static int
OUTPUTADDRESS_COLUMN
static int
OUTPUTCIRCUITADDRESS_COLUMN
static int
OUTPUTLENGTH_COLUMN
static int
OUTPUTTYPE_COLUMN
static int
OUTPUTWIRED_COLUMN
-
Fields inherited from class jmri.jmrix.acela.nodeconfig.NodeConfigModel
editmode, numrows
-
-
Constructor Summary
Constructors Constructor Description OutputConfigModel()
-
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
-
OUTPUTCIRCUITADDRESS_COLUMN
public static final int OUTPUTCIRCUITADDRESS_COLUMN
- See Also:
- Constant Field Values
-
OUTPUTWIRED_COLUMN
public static final int OUTPUTWIRED_COLUMN
- See Also:
- Constant Field Values
-
INITIALSTATE_COLUMN
public static final int INITIALSTATE_COLUMN
- See Also:
- Constant Field Values
-
OUTPUTTYPE_COLUMN
public static final int OUTPUTTYPE_COLUMN
- See Also:
- Constant Field Values
-
OUTPUTLENGTH_COLUMN
public static final int OUTPUTLENGTH_COLUMN
- See Also:
- Constant Field Values
-
OUTPUTADDRESS_COLUMN
public static final int OUTPUTADDRESS_COLUMN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OutputConfigModel
public OutputConfigModel()
-
-
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
-
-