Package org.bidib.wizard.mvc.main.view
Class MainNodeListActionListener
java.lang.Object
org.bidib.wizard.mvc.main.view.MainNodeListActionListener
- All Implemented Interfaces:
NetBidibServiceInfoListener,LabelChangedListener<org.bidib.wizard.api.model.NodeInterface>,NodeListActionListener
public class MainNodeListActionListener
extends Object
implements NodeListActionListener, NetBidibServiceInfoListener
This listener is called after the value is set in the node.
-
Constructor Summary
ConstructorsConstructorDescriptionMainNodeListActionListener(MainView view, MainModel model, StatusBar statusBar, org.bidib.wizard.api.LookupService lookupService) -
Method Summary
Modifier and TypeMethodDescriptionvoidbulkSwitchDialog(org.bidib.wizard.api.model.NodeInterface node, int x, int y) Show the bulk switch dialog.voiddccAccessory(org.bidib.wizard.api.model.NodeInterface node, int x, int y) Open the DCC accessory dialog.voiddccAdvView(org.bidib.wizard.api.model.NodeInterface node) Open the DCCA view.voiddeleteNodeLabels(org.bidib.wizard.api.model.NodeInterface node) Delete the labels of the node.voiddetachAttachNode(org.bidib.wizard.api.model.NodeInterface node, boolean detach) Detach from or attach to the interface node.voiddisableFeedbackMirror(org.bidib.wizard.api.model.NodeInterface node, boolean disable) Disable delivery of feedback mirror on the node.voiddisableNode(org.bidib.wizard.api.model.NodeInterface node) Disable spontaneous events from node.voiddmxModeler(org.bidib.wizard.api.model.NodeInterface node) Open the DMX modeler.voidenableAddressMessages(org.bidib.wizard.api.model.NodeInterface node) Enable delivery of address messages on the node.voidenableDccStart(org.bidib.wizard.api.model.NodeInterface node) Enable start macros from DCC on the node.voidenableExternalStart(org.bidib.wizard.api.model.NodeInterface node) Enable start macros from inputs on the node.voidenableFeedbackMessages(org.bidib.wizard.api.model.NodeInterface node) Enable delivery of feedback messages on the node.voidenableKeyMessages(org.bidib.wizard.api.model.NodeInterface node) Enable delivery of key messages on the node.voidenableNode(org.bidib.wizard.api.model.NodeInterface node) Enable spontaneous events from node.voidexportNode(org.bidib.wizard.api.model.NodeInterface node) Export the node configuration to xml file.voidfeatures(org.bidib.wizard.api.model.NodeInterface node) Show the node features dialog.voidfirmwareUpdate(org.bidib.wizard.api.model.NodeInterface node) Open the firmware update dialog.voidgenerateDocumentation(org.bidib.wizard.api.model.NodeInterface node) Generate documentation of node.voidhandleNetBidibServiceInfo(org.bidib.wizard.api.model.common.NetBidibServiceInfo serviceInfo) voididentify(org.bidib.wizard.api.model.NodeInterface node) Update the identify state on the node.voidimportNode(org.bidib.wizard.api.model.NodeInterface node) Import the node configuration from xml file.voidlabelChanged(org.bidib.wizard.api.model.NodeInterface node, String label) The label of the object has changed.voidloco(org.bidib.wizard.api.model.NodeInterface node) Open the loco dialog.voidlocoCv(org.bidib.wizard.api.model.NodeInterface node, int x, int y) Open the loco CV dialog.voidlocoCvPt(org.bidib.wizard.api.model.NodeInterface node, int x, int y) Open the loco CV dialog for programming track.voidlocoList(org.bidib.wizard.api.model.NodeInterface node) Open the loco table.voidnodeDetails(org.bidib.wizard.api.model.NodeInterface node, int x, int y) Show the node details.voidping(org.bidib.wizard.api.model.NodeInterface node, byte[] data) Send a ping to the node.readUniqueId(org.bidib.wizard.api.model.NodeInterface node) Read the uniqueId from the node.voidreloadNode(org.bidib.wizard.api.model.NodeInterface node) Reload the configuration from the node.voidreset(org.bidib.wizard.api.model.NodeInterface node) Reset the node.voidsaveOnNode(org.bidib.wizard.api.model.NodeInterface node, Map<String, Object> params) Save configurable values (accessories, macros, servo, switch and light port configuration) to the node.
-
Constructor Details
-
MainNodeListActionListener
-
-
Method Details
-
enableAddressMessages
public void enableAddressMessages(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerEnable delivery of address messages on the node.- Specified by:
enableAddressMessagesin interfaceNodeListActionListener- Parameters:
node- the node
-
enableDccStart
public void enableDccStart(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerEnable start macros from DCC on the node.- Specified by:
enableDccStartin interfaceNodeListActionListener- Parameters:
node- the node
-
enableExternalStart
public void enableExternalStart(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerEnable start macros from inputs on the node.- Specified by:
enableExternalStartin interfaceNodeListActionListener- Parameters:
node- the node
-
enableFeedbackMessages
public void enableFeedbackMessages(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerEnable delivery of feedback messages on the node.- Specified by:
enableFeedbackMessagesin interfaceNodeListActionListener- Parameters:
node- the node
-
disableFeedbackMirror
public void disableFeedbackMirror(org.bidib.wizard.api.model.NodeInterface node, boolean disable) Description copied from interface:NodeListActionListenerDisable delivery of feedback mirror on the node.- Specified by:
disableFeedbackMirrorin interfaceNodeListActionListener- Parameters:
node- the nodedisable- the enable flag
-
enableKeyMessages
public void enableKeyMessages(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerEnable delivery of key messages on the node.- Specified by:
enableKeyMessagesin interfaceNodeListActionListener- Parameters:
node- the node
-
features
public void features(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerShow the node features dialog.- Specified by:
featuresin interfaceNodeListActionListener- Parameters:
node- the node
-
exportNode
public void exportNode(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerExport the node configuration to xml file.- Specified by:
exportNodein interfaceNodeListActionListener- Parameters:
node- the node
-
importNode
public void importNode(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerImport the node configuration from xml file.- Specified by:
importNodein interfaceNodeListActionListener- Parameters:
node- the node
-
firmwareUpdate
public void firmwareUpdate(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerOpen the firmware update dialog.- Specified by:
firmwareUpdatein interfaceNodeListActionListener- Parameters:
node- the node
-
identify
public void identify(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerUpdate the identify state on the node.- Specified by:
identifyin interfaceNodeListActionListener- Parameters:
node- the node
-
dccAdvView
public void dccAdvView(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerOpen the DCCA view.- Specified by:
dccAdvViewin interfaceNodeListActionListener- Parameters:
node- the node
-
ping
public void ping(org.bidib.wizard.api.model.NodeInterface node, byte[] data) Description copied from interface:NodeListActionListenerSend a ping to the node.- Specified by:
pingin interfaceNodeListActionListener- Parameters:
node- the nodedata- the data
-
enableNode
public void enableNode(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerEnable spontaneous events from node.- Specified by:
enableNodein interfaceNodeListActionListener- Parameters:
node- the node
-
disableNode
public void disableNode(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerDisable spontaneous events from node.- Specified by:
disableNodein interfaceNodeListActionListener- Parameters:
node- the node
-
readUniqueId
Description copied from interface:NodeListActionListenerRead the uniqueId from the node.- Specified by:
readUniqueIdin interfaceNodeListActionListener- Parameters:
node- the node- Returns:
- the uniqueId
-
detachAttachNode
public void detachAttachNode(org.bidib.wizard.api.model.NodeInterface node, boolean detach) Description copied from interface:NodeListActionListenerDetach from or attach to the interface node.- Specified by:
detachAttachNodein interfaceNodeListActionListener- Parameters:
node- the nodedetach- detach the node flag:truedetach node,falseattach node
-
labelChanged
Description copied from interface:LabelChangedListenerThe label of the object has changed.- Specified by:
labelChangedin interfaceLabelChangedListener<org.bidib.wizard.api.model.NodeInterface>- Parameters:
node- the instancelabel- the new label
-
loco
public void loco(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerOpen the loco dialog.- Specified by:
locoin interfaceNodeListActionListener- Parameters:
node- the node
-
dccAccessory
public void dccAccessory(org.bidib.wizard.api.model.NodeInterface node, int x, int y) Description copied from interface:NodeListActionListenerOpen the DCC accessory dialog.- Specified by:
dccAccessoryin interfaceNodeListActionListener- Parameters:
node- the nodex- the x positiony- the y position
-
locoCv
public void locoCv(org.bidib.wizard.api.model.NodeInterface node, int x, int y) Description copied from interface:NodeListActionListenerOpen the loco CV dialog.- Specified by:
locoCvin interfaceNodeListActionListener- Parameters:
node- the nodex- the x positiony- the y position
-
locoCvPt
public void locoCvPt(org.bidib.wizard.api.model.NodeInterface node, int x, int y) Description copied from interface:NodeListActionListenerOpen the loco CV dialog for programming track.- Specified by:
locoCvPtin interfaceNodeListActionListener- Parameters:
node- the nodex- the x positiony- the y position
-
nodeDetails
public void nodeDetails(org.bidib.wizard.api.model.NodeInterface node, int x, int y) Description copied from interface:NodeListActionListenerShow the node details.- Specified by:
nodeDetailsin interfaceNodeListActionListener- Parameters:
node- the nodex- the X position of the label component that displays the nodey- the Y position of the label component that displays the node
-
bulkSwitchDialog
public void bulkSwitchDialog(org.bidib.wizard.api.model.NodeInterface node, int x, int y) Description copied from interface:NodeListActionListenerShow the bulk switch dialog.- Specified by:
bulkSwitchDialogin interfaceNodeListActionListener- Parameters:
node- the nodex- the X position of the label component that displays the nodey- the Y position of the label component that displays the node
-
saveOnNode
Description copied from interface:NodeListActionListenerSave configurable values (accessories, macros, servo, switch and light port configuration) to the node.- Specified by:
saveOnNodein interfaceNodeListActionListener- Parameters:
node- the nodeparams- the parameters
-
dmxModeler
public void dmxModeler(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerOpen the DMX modeler.- Specified by:
dmxModelerin interfaceNodeListActionListener- Parameters:
node- the node
-
locoList
public void locoList(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerOpen the loco table.- Specified by:
locoListin interfaceNodeListActionListener- Parameters:
node- the node
-
reset
public void reset(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerReset the node.- Specified by:
resetin interfaceNodeListActionListener- Parameters:
node- the node
-
generateDocumentation
public void generateDocumentation(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerGenerate documentation of node.- Specified by:
generateDocumentationin interfaceNodeListActionListener- Parameters:
node- the node
-
deleteNodeLabels
public void deleteNodeLabels(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerDelete the labels of the node.- Specified by:
deleteNodeLabelsin interfaceNodeListActionListener
-
reloadNode
public void reloadNode(org.bidib.wizard.api.model.NodeInterface node) Description copied from interface:NodeListActionListenerReload the configuration from the node.- Specified by:
reloadNodein interfaceNodeListActionListener- Parameters:
node- the node
-
handleNetBidibServiceInfo
public void handleNetBidibServiceInfo(org.bidib.wizard.api.model.common.NetBidibServiceInfo serviceInfo) - Specified by:
handleNetBidibServiceInfoin interfaceNetBidibServiceInfoListener
-