Package jmri.jmrix.can.cbus.node
Class CbusNodeTableDataModel
java.lang.Object
javax.swing.table.AbstractTableModel
jmri.jmrix.can.cbus.node.CbusBasicNodeTable
jmri.jmrix.can.cbus.node.CbusBasicNodeTableOperations
jmri.jmrix.can.cbus.node.CbusBasicNodeTableFetch
jmri.jmrix.can.cbus.node.CbusNodeTableDataModel
- All Implemented Interfaces:
PropertyChangeListener,Serializable,EventListener,TableModel,Disposable,AbstractMRListener,CanListener
public class CbusNodeTableDataModel
extends CbusBasicNodeTableFetch
implements CanListener, PropertyChangeListener, Disposable
Table data model for display of CBUS Nodes
- See Also:
-
Field Summary
FieldsFields inherited from class jmri.jmrix.can.cbus.node.CbusBasicNodeTableFetch
trickleFetchFields 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_COLUMNFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionCbusNodeTableDataModel(CanSystemConnectionMemo memo, int initialArraySize) Create a new CbusNodeTableDataModel.CbusNodeTableDataModel(CanSystemConnectionMemo memo, int row, int column) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Disconnect from the networkvoidUnused, even simulated nodes / command stations normally respond with CanReplyvoidvoidListen on the network for incoming STAT and PNN OPC'svoidsetBackgroundAllocateListener(boolean newState) voidstartASearchForNodes(NodeConfigToolPane panel, int timeout) Sends a search for Nodes with timeoutbooleanvoidSearch the directory for nodes, ie userPref/cbus/123.xml Add any found to the Node Manager Table (Modelled after a method in jmri.jmrit.dispatcher.TrainInfoFile )Methods inherited from class jmri.jmrix.can.cbus.node.CbusBasicNodeTableFetch
sendNextBackgroundFetch, setUrgentFetch, setUrgentNode, startBackgroundFetch, startUrgentFetch, triggerUrgentFetchMethods inherited from class jmri.jmrix.can.cbus.node.CbusBasicNodeTableOperations
addNode, getAnyNodeInLearnMode, getCsByNum, getListOfNodeNumberNames, getNextAvailableNodeNumber, getNodeByNodeNum, getNodeByRowNum, getNodeName, getNodeNameFromCanId, getNodeNumberName, getNodeRowFromNodeNum, getNumberNodesWithCanId, getRequestNodeRowToDisplay, provideCsByNum, provideNodeByNodeNum, removeRow, setRequestNodeDisplayMethods inherited from class jmri.jmrix.can.cbus.node.CbusBasicNodeTable
getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, setValueAtMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jmri.jmrix.can.CanListener
addTc, addTc, removeTc, removeTc
-
Field Details
-
preferences
-
-
Constructor Details
-
CbusNodeTableDataModel
-
CbusNodeTableDataModel
Create a new CbusNodeTableDataModel.- Parameters:
memo- system connection.initialArraySize- initial Array Size.
-
-
Method Details
-
setBackgroundAllocateListener
-
message
Unused, even simulated nodes / command stations normally respond with CanReply- Specified by:
messagein interfaceCanListener- Parameters:
m- canmessage
-
reply
Listen on the network for incoming STAT and PNN OPC's- Specified by:
replyin interfaceCanListener- Parameters:
m- incoming CanReply
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
startASearchForNodes
Sends a search for Nodes with timeout- Parameters:
panel- Feedback pane, can be nulltimeout- in ms
-
startupSearchNodeXmlFile
Search the directory for nodes, ie userPref/cbus/123.xml Add any found to the Node Manager Table (Modelled after a method in jmri.jmrit.dispatcher.TrainInfoFile ) -
startupComplete
-
dispose
Disconnect from the networkClose down any background listeners
Cancel outstanding Timers
- Specified by:
disposein interfaceDisposable
-