Package jmri.jmrix.can.cbus.node
Class CbusBasicNodeTableFetch
- 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
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
- Direct Known Subclasses:
CbusNodeTableDataModel
public class CbusBasicNodeTableFetch extends CbusBasicNodeTableOperations
Table data model for display of CBUS Nodes- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected CbusNodeTrickleFetch
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 CbusBasicNodeTableFetch(CanSystemConnectionMemo memo, int row, int column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
sendNextBackgroundFetch()
Send the next parameter request, ev var request or nv request.void
setUrgentFetch(int nodenum, int urgentNodeBefore, int urgentNodeAfter)
Fetch data in order of priority based on what user is currently viewingprotected void
setUrgentNode(int nodeNum)
Notify the table that the Node data fetch is more urgentvoid
startBackgroundFetch()
Starts background fetching for all table data as per user prefs Call whenever a node has been added to table or node editedvoid
startUrgentFetch()
Notify the table that the Node data fetch is more urgentvoid
triggerUrgentFetch()
Request the table send the next urgent fetch-
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
-
-
-
-
Field Detail
-
trickleFetch
protected CbusNodeTrickleFetch trickleFetch
-
-
Constructor Detail
-
CbusBasicNodeTableFetch
public CbusBasicNodeTableFetch(@Nonnull CanSystemConnectionMemo memo, int row, int column)
-
-
Method Detail
-
startUrgentFetch
public void startUrgentFetch()
Notify the table that the Node data fetch is more urgent
-
setUrgentNode
protected void setUrgentNode(int nodeNum)
Notify the table that the Node data fetch is more urgent- Parameters:
nodeNum
- the Node to prioritise in the fetch
-
setUrgentFetch
public void setUrgentFetch(int nodenum, int urgentNodeBefore, int urgentNodeAfter)
Fetch data in order of priority based on what user is currently viewing- Parameters:
nodenum
- number of Node to prioritise in the fetchurgentNodeBefore
- number of the Node in main table row aboveurgentNodeAfter
- number of the Node in main table row below
-
triggerUrgentFetch
public void triggerUrgentFetch()
Request the table send the next urgent fetch
-
startBackgroundFetch
public void startBackgroundFetch()
Starts background fetching for all table data as per user prefs Call whenever a node has been added to table or node edited
-
sendNextBackgroundFetch
protected void sendNextBackgroundFetch()
Send the next parameter request, ev var request or nv request. Triggered from either background or active fetch. Triggers loading the node backup xml file Triggers the check for node data fetch complete The order of the fetch changes depending on If node is a Command station If a node is currently selected in a node table pane The node above or below the currently selected row If event or nv tab is displayed in a node table pane Default order is Params 0,1,3,6,5,7,2, event total, remaining parameters, NVs, event index, event vars.
-
-