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:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.table.TableModel
,Disposable
,AbstractMRListener
,CanListener
public class CbusNodeTableDataModel extends CbusBasicNodeTableFetch implements CanListener, java.beans.PropertyChangeListener, Disposable
Table data model for display of CBUS Nodes- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected CbusPreferences
preferences
-
Fields inherited from class jmri.jmrix.can.cbus.node.CbusBasicNodeTableFetch
trickleFetch
-
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 CbusNodeTableDataModel(CanSystemConnectionMemo memo, int initialArraySize)
Create a new CbusNodeTableDataModel.CbusNodeTableDataModel(CanSystemConnectionMemo memo, int row, int column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disconnect from the networkvoid
message(CanMessage m)
Unused, even simulated nodes / command stations normally respond with CanReplyvoid
propertyChange(java.beans.PropertyChangeEvent ev)
void
reply(CanReply m)
Listen on the network for incoming STAT and PNN OPC'svoid
setBackgroundAllocateListener(boolean newState)
void
startASearchForNodes(NodeConfigToolPane panel, int timeout)
Sends a search for Nodes with timeoutboolean
startupComplete()
void
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 )-
Methods inherited from class jmri.jmrix.can.cbus.node.CbusBasicNodeTableFetch
sendNextBackgroundFetch, setUrgentFetch, setUrgentNode, startBackgroundFetch, startUrgentFetch, triggerUrgentFetch
-
Methods inherited from class jmri.jmrix.can.cbus.node.CbusBasicNodeTableOperations
addNode, getAnyNodeInLearnMode, getCsByNum, getListOfNodeNumberNames, getNextAvailableNodeNumber, getNodeByNodeNum, getNodeByRowNum, getNodeName, getNodeNameFromCanId, getNodeNumberName, getNodeRowFromNodeNum, getRequestNodeRowToDisplay, provideCsByNum, provideNodeByNodeNum, removeRow, setRequestNodeDisplay
-
Methods inherited from class jmri.jmrix.can.cbus.node.CbusBasicNodeTable
getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, setValueAt
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jmri.jmrix.can.CanListener
addTc, addTc, removeTc, removeTc
-
-
-
-
Field Detail
-
preferences
protected CbusPreferences preferences
-
-
Constructor Detail
-
CbusNodeTableDataModel
public CbusNodeTableDataModel(@Nonnull CanSystemConnectionMemo memo, int row, int column)
-
CbusNodeTableDataModel
public CbusNodeTableDataModel(@Nonnull CanSystemConnectionMemo memo, int initialArraySize)
Create a new CbusNodeTableDataModel.- Parameters:
memo
- system connection.initialArraySize
- initial Array Size.
-
-
Method Detail
-
setBackgroundAllocateListener
public void setBackgroundAllocateListener(boolean newState)
-
message
public void message(CanMessage m)
Unused, even simulated nodes / command stations normally respond with CanReply- Specified by:
message
in interfaceCanListener
- Parameters:
m
- canmessage
-
reply
public void reply(CanReply m)
Listen on the network for incoming STAT and PNN OPC's- Specified by:
reply
in interfaceCanListener
- Parameters:
m
- incoming CanReply
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent ev)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
startASearchForNodes
public void startASearchForNodes(NodeConfigToolPane panel, int timeout)
Sends a search for Nodes with timeout- Parameters:
panel
- Feedback pane, can be nulltimeout
- in ms
-
startupSearchNodeXmlFile
public void 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
public boolean startupComplete()
-
dispose
public void dispose()
Disconnect from the networkClose down any background listeners
Cancel outstanding Timers
- Specified by:
dispose
in interfaceDisposable
-
-