Package jmri.jmrix.can.cbus.node
Class CbusNodeFromFcuTableDataModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrix.can.cbus.node.CbusBasicNodeTable
-
- jmri.jmrix.can.cbus.node.CbusBasicNodeTableOperations
-
- jmri.jmrix.can.cbus.node.CbusNodeFromFcuTableDataModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public class CbusNodeFromFcuTableDataModel extends CbusBasicNodeTableOperations
Table data model for display of Cbus Nodes imported from MERG FCU- See Also:
CbusNodeFromBackup
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
FCU_MAX_COLUMN
static int
FCU_NODE_EVENTS_COLUMN
static int
FCU_NODE_NUMBER_COLUMN
static int
FCU_NODE_TOTAL_BYTES_COLUMN
static int
FCU_NODE_TYPE_NAME_COLUMN
static int
FCU_NODE_USER_NAME_COLUMN
static java.lang.String[]
FCUTABLETIPS
static int
NODE_NV_TOTAL_COLUMN
-
Fields inherited from class jmri.jmrix.can.cbus.node.CbusBasicNodeTable
_mainArray, _memo, BYTES_REMAINING_COLUMN, CANID_COLUMN, COLUMNTOOLTIPS, COMMAND_STAT_NUMBER_COLUMN, LAST_BACKUP_COLUMN, MAX_COLUMN, NODE_EDIT_BUTTON_COLUMN, NODE_EVENT_INDEX_VALID_COLUMN, NODE_EVENTS_COLUMN, NODE_IN_LEARN_MODE_COLUMN, NODE_NUMBER_COLUMN, NODE_RESYNC_BUTTON_COLUMN, NODE_TOTAL_BYTES_COLUMN, NODE_TYPE_NAME_COLUMN, NODE_USER_NAME_COLUMN, NUMBER_BACKUPS_COLUMN, progMan, SESSION_BACKUP_STATUS_COLUMN
-
-
Constructor Summary
Constructors Constructor Description CbusNodeFromFcuTableDataModel(CanSystemConnectionMemo memo, int row, int column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getColumnClass(int col)
int
getColumnCount()
java.lang.String
getColumnName(int col)
Returns String of column name from column int used in table headerint
getRowCount()
java.lang.Object
getValueAt(int row, int col)
boolean
isCellEditable(int row, int col)
Always False as backup Node.CbusNodeFromBackup
provideNodeByNodeNum(int nodenum)
Returns a new or existing Backup node by node numbervoid
resetData()
Reset the Table Data.void
setValueAt(java.lang.Object value, int row, int col)
Ignored as data from file.-
Methods inherited from class jmri.jmrix.can.cbus.node.CbusBasicNodeTableOperations
addNode, getAnyNodeInLearnMode, getCsByNum, getListOfNodeNumberNames, getNextAvailableNodeNumber, getNodeByNodeNum, getNodeByRowNum, getNodeName, getNodeNameFromCanId, getNodeNumberName, getNodeRowFromNodeNum, getRequestNodeRowToDisplay, provideCsByNum, removeRow, setRequestNodeDisplay
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
FCU_NODE_NUMBER_COLUMN
public static final int FCU_NODE_NUMBER_COLUMN
- See Also:
- Constant Field Values
-
FCU_NODE_TYPE_NAME_COLUMN
public static final int FCU_NODE_TYPE_NAME_COLUMN
- See Also:
- Constant Field Values
-
FCU_NODE_USER_NAME_COLUMN
public static final int FCU_NODE_USER_NAME_COLUMN
- See Also:
- Constant Field Values
-
FCU_NODE_EVENTS_COLUMN
public static final int FCU_NODE_EVENTS_COLUMN
- See Also:
- Constant Field Values
-
NODE_NV_TOTAL_COLUMN
public static final int NODE_NV_TOTAL_COLUMN
- See Also:
- Constant Field Values
-
FCU_NODE_TOTAL_BYTES_COLUMN
public static final int FCU_NODE_TOTAL_BYTES_COLUMN
- See Also:
- Constant Field Values
-
FCU_MAX_COLUMN
public static final int FCU_MAX_COLUMN
- See Also:
- Constant Field Values
-
FCUTABLETIPS
public static final java.lang.String[] FCUTABLETIPS
-
-
Constructor Detail
-
CbusNodeFromFcuTableDataModel
public CbusNodeFromFcuTableDataModel(CanSystemConnectionMemo memo, int row, int column)
-
-
Method Detail
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interfacejavax.swing.table.TableModel
- Overrides:
getRowCount
in classCbusBasicNodeTable
-
resetData
public void resetData()
Reset the Table Data.
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnCount
in classCbusBasicNodeTable
-
getColumnName
public java.lang.String getColumnName(int col)
Returns String of column name from column int used in table header- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classCbusBasicNodeTable
-
getColumnClass
public java.lang.Class<?> getColumnClass(int col)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
in classCbusBasicNodeTable
-
isCellEditable
public boolean isCellEditable(int row, int col)
Always False as backup Node.- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classCbusBasicNodeTable
- Returns:
- UserName and Resync Button columns true, else false
-
getValueAt
public java.lang.Object getValueAt(int row, int col)
- Specified by:
getValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
getValueAt
in classCbusBasicNodeTable
-
setValueAt
public void setValueAt(java.lang.Object value, int row, int col)
Ignored as data from file.- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classCbusBasicNodeTable
-
provideNodeByNodeNum
public CbusNodeFromBackup provideNodeByNodeNum(int nodenum)
Returns a new or existing Backup node by node number- Overrides:
provideNodeByNodeNum
in classCbusBasicNodeTableOperations
- Parameters:
nodenum
- Node Number- Returns:
- the Node which has the node number
-
-