Class NodeConfigManagerFrame.CPnodeConfigModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrix.cmri.serial.nodeconfigmanager.NodeConfigManagerFrame.CPnodeConfigModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
- Enclosing class:
- NodeConfigManagerFrame
public class NodeConfigManagerFrame.CPnodeConfigModel extends javax.swing.table.AbstractTableModel
Set up table for selecting card type by address for CPNODE/CPMEGA nodes- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
CARD_COLUMN
static int
CARDNUM_COLUMN
static int
CARDTYPE_COLUMN
-
Constructor Summary
Constructors Constructor Description CPnodeConfigModel()
-
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)
int
getRowCount()
java.lang.Object
getValueAt(int r, int c)
boolean
isCellEditable(int r, int c)
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
-
CARD_COLUMN
public static final int CARD_COLUMN
- See Also:
- Constant Field Values
-
CARDNUM_COLUMN
public static final int CARDNUM_COLUMN
- See Also:
- Constant Field Values
-
CARDTYPE_COLUMN
public static final int CARDTYPE_COLUMN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CPnodeConfigModel
public CPnodeConfigModel()
-
-
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()
-
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
-
-