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

    Constructors
    Constructor
    Description
    MainNodeListActionListener(MainView view, MainModel model, StatusBar statusBar, org.bidib.wizard.api.LookupService lookupService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bulkSwitchDialog(org.bidib.wizard.api.model.NodeInterface node, int x, int y)
    Show the bulk switch dialog.
    void
    dccAccessory(org.bidib.wizard.api.model.NodeInterface node, int x, int y)
    Open the DCC accessory dialog.
    void
    dccAdvView(org.bidib.wizard.api.model.NodeInterface node)
    Open the DCCA view.
    void
    deleteNodeLabels(org.bidib.wizard.api.model.NodeInterface node)
    Delete the labels of the node.
    void
    detachAttachNode(org.bidib.wizard.api.model.NodeInterface node, boolean detach)
    Detach from or attach to the interface node.
    void
    disableFeedbackMirror(org.bidib.wizard.api.model.NodeInterface node, boolean disable)
    Disable delivery of feedback mirror on the node.
    void
    disableNode(org.bidib.wizard.api.model.NodeInterface node)
    Disable spontaneous events from node.
    void
    dmxModeler(org.bidib.wizard.api.model.NodeInterface node)
    Open the DMX modeler.
    void
    enableAddressMessages(org.bidib.wizard.api.model.NodeInterface node)
    Enable delivery of address messages on the node.
    void
    enableDccStart(org.bidib.wizard.api.model.NodeInterface node)
    Enable start macros from DCC on the node.
    void
    enableExternalStart(org.bidib.wizard.api.model.NodeInterface node)
    Enable start macros from inputs on the node.
    void
    enableFeedbackMessages(org.bidib.wizard.api.model.NodeInterface node)
    Enable delivery of feedback messages on the node.
    void
    enableKeyMessages(org.bidib.wizard.api.model.NodeInterface node)
    Enable delivery of key messages on the node.
    void
    enableNode(org.bidib.wizard.api.model.NodeInterface node)
    Enable spontaneous events from node.
    void
    exportNode(org.bidib.wizard.api.model.NodeInterface node)
    Export the node configuration to xml file.
    void
    features(org.bidib.wizard.api.model.NodeInterface node)
    Show the node features dialog.
    void
    firmwareUpdate(org.bidib.wizard.api.model.NodeInterface node)
    Open the firmware update dialog.
    void
    generateDocumentation(org.bidib.wizard.api.model.NodeInterface node)
    Generate documentation of node.
    void
    handleNetBidibServiceInfo(org.bidib.wizard.api.model.common.NetBidibServiceInfo serviceInfo)
     
    void
    identify(org.bidib.wizard.api.model.NodeInterface node)
    Update the identify state on the node.
    void
    importNode(org.bidib.wizard.api.model.NodeInterface node)
    Import the node configuration from xml file.
    void
    labelChanged(org.bidib.wizard.api.model.NodeInterface node, String label)
    The label of the object has changed.
    void
    loco(org.bidib.wizard.api.model.NodeInterface node)
    Open the loco dialog.
    void
    locoCv(org.bidib.wizard.api.model.NodeInterface node, int x, int y)
    Open the loco CV dialog.
    void
    locoCvPt(org.bidib.wizard.api.model.NodeInterface node, int x, int y)
    Open the loco CV dialog for programming track.
    void
    locoList(org.bidib.wizard.api.model.NodeInterface node)
    Open the loco table.
    void
    nodeDetails(org.bidib.wizard.api.model.NodeInterface node, int x, int y)
    Show the node details.
    void
    ping(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.
    void
    reloadNode(org.bidib.wizard.api.model.NodeInterface node)
    Reload the configuration from the node.
    void
    reset(org.bidib.wizard.api.model.NodeInterface node)
    Reset the node.
    void
    saveOnNode(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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MainNodeListActionListener

      public MainNodeListActionListener(MainView view, MainModel model, StatusBar statusBar, org.bidib.wizard.api.LookupService lookupService)
  • Method Details

    • enableAddressMessages

      public void enableAddressMessages(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Enable delivery of address messages on the node.
      Specified by:
      enableAddressMessages in interface NodeListActionListener
      Parameters:
      node - the node
    • enableDccStart

      public void enableDccStart(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Enable start macros from DCC on the node.
      Specified by:
      enableDccStart in interface NodeListActionListener
      Parameters:
      node - the node
    • enableExternalStart

      public void enableExternalStart(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Enable start macros from inputs on the node.
      Specified by:
      enableExternalStart in interface NodeListActionListener
      Parameters:
      node - the node
    • enableFeedbackMessages

      public void enableFeedbackMessages(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Enable delivery of feedback messages on the node.
      Specified by:
      enableFeedbackMessages in interface NodeListActionListener
      Parameters:
      node - the node
    • disableFeedbackMirror

      public void disableFeedbackMirror(org.bidib.wizard.api.model.NodeInterface node, boolean disable)
      Description copied from interface: NodeListActionListener
      Disable delivery of feedback mirror on the node.
      Specified by:
      disableFeedbackMirror in interface NodeListActionListener
      Parameters:
      node - the node
      disable - the enable flag
    • enableKeyMessages

      public void enableKeyMessages(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Enable delivery of key messages on the node.
      Specified by:
      enableKeyMessages in interface NodeListActionListener
      Parameters:
      node - the node
    • features

      public void features(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Show the node features dialog.
      Specified by:
      features in interface NodeListActionListener
      Parameters:
      node - the node
    • exportNode

      public void exportNode(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Export the node configuration to xml file.
      Specified by:
      exportNode in interface NodeListActionListener
      Parameters:
      node - the node
    • importNode

      public void importNode(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Import the node configuration from xml file.
      Specified by:
      importNode in interface NodeListActionListener
      Parameters:
      node - the node
    • firmwareUpdate

      public void firmwareUpdate(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Open the firmware update dialog.
      Specified by:
      firmwareUpdate in interface NodeListActionListener
      Parameters:
      node - the node
    • identify

      public void identify(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Update the identify state on the node.
      Specified by:
      identify in interface NodeListActionListener
      Parameters:
      node - the node
    • dccAdvView

      public void dccAdvView(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Open the DCCA view.
      Specified by:
      dccAdvView in interface NodeListActionListener
      Parameters:
      node - the node
    • ping

      public void ping(org.bidib.wizard.api.model.NodeInterface node, byte[] data)
      Description copied from interface: NodeListActionListener
      Send a ping to the node.
      Specified by:
      ping in interface NodeListActionListener
      Parameters:
      node - the node
      data - the data
    • enableNode

      public void enableNode(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Enable spontaneous events from node.
      Specified by:
      enableNode in interface NodeListActionListener
      Parameters:
      node - the node
    • disableNode

      public void disableNode(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Disable spontaneous events from node.
      Specified by:
      disableNode in interface NodeListActionListener
      Parameters:
      node - the node
    • readUniqueId

      public Long readUniqueId(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Read the uniqueId from the node.
      Specified by:
      readUniqueId in interface NodeListActionListener
      Parameters:
      node - the node
      Returns:
      the uniqueId
    • detachAttachNode

      public void detachAttachNode(org.bidib.wizard.api.model.NodeInterface node, boolean detach)
      Description copied from interface: NodeListActionListener
      Detach from or attach to the interface node.
      Specified by:
      detachAttachNode in interface NodeListActionListener
      Parameters:
      node - the node
      detach - detach the node flag: true detach node, false attach node
    • labelChanged

      public void labelChanged(org.bidib.wizard.api.model.NodeInterface node, String label)
      Description copied from interface: LabelChangedListener
      The label of the object has changed.
      Specified by:
      labelChanged in interface LabelChangedListener<org.bidib.wizard.api.model.NodeInterface>
      Parameters:
      node - the instance
      label - the new label
    • loco

      public void loco(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Open the loco dialog.
      Specified by:
      loco in interface NodeListActionListener
      Parameters:
      node - the node
    • dccAccessory

      public void dccAccessory(org.bidib.wizard.api.model.NodeInterface node, int x, int y)
      Description copied from interface: NodeListActionListener
      Open the DCC accessory dialog.
      Specified by:
      dccAccessory in interface NodeListActionListener
      Parameters:
      node - the node
      x - the x position
      y - the y position
    • locoCv

      public void locoCv(org.bidib.wizard.api.model.NodeInterface node, int x, int y)
      Description copied from interface: NodeListActionListener
      Open the loco CV dialog.
      Specified by:
      locoCv in interface NodeListActionListener
      Parameters:
      node - the node
      x - the x position
      y - the y position
    • locoCvPt

      public void locoCvPt(org.bidib.wizard.api.model.NodeInterface node, int x, int y)
      Description copied from interface: NodeListActionListener
      Open the loco CV dialog for programming track.
      Specified by:
      locoCvPt in interface NodeListActionListener
      Parameters:
      node - the node
      x - the x position
      y - the y position
    • nodeDetails

      public void nodeDetails(org.bidib.wizard.api.model.NodeInterface node, int x, int y)
      Description copied from interface: NodeListActionListener
      Show the node details.
      Specified by:
      nodeDetails in interface NodeListActionListener
      Parameters:
      node - the node
      x - the X position of the label component that displays the node
      y - 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: NodeListActionListener
      Show the bulk switch dialog.
      Specified by:
      bulkSwitchDialog in interface NodeListActionListener
      Parameters:
      node - the node
      x - the X position of the label component that displays the node
      y - the Y position of the label component that displays the node
    • saveOnNode

      public void saveOnNode(org.bidib.wizard.api.model.NodeInterface node, Map<String,Object> params)
      Description copied from interface: NodeListActionListener
      Save configurable values (accessories, macros, servo, switch and light port configuration) to the node.
      Specified by:
      saveOnNode in interface NodeListActionListener
      Parameters:
      node - the node
      params - the parameters
    • dmxModeler

      public void dmxModeler(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Open the DMX modeler.
      Specified by:
      dmxModeler in interface NodeListActionListener
      Parameters:
      node - the node
    • locoList

      public void locoList(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Open the loco table.
      Specified by:
      locoList in interface NodeListActionListener
      Parameters:
      node - the node
    • reset

      public void reset(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Reset the node.
      Specified by:
      reset in interface NodeListActionListener
      Parameters:
      node - the node
    • generateDocumentation

      public void generateDocumentation(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Generate documentation of node.
      Specified by:
      generateDocumentation in interface NodeListActionListener
      Parameters:
      node - the node
    • deleteNodeLabels

      public void deleteNodeLabels(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Delete the labels of the node.
      Specified by:
      deleteNodeLabels in interface NodeListActionListener
    • reloadNode

      public void reloadNode(org.bidib.wizard.api.model.NodeInterface node)
      Description copied from interface: NodeListActionListener
      Reload the configuration from the node.
      Specified by:
      reloadNode in interface NodeListActionListener
      Parameters:
      node - the node
    • handleNetBidibServiceInfo

      public void handleNetBidibServiceInfo(org.bidib.wizard.api.model.common.NetBidibServiceInfo serviceInfo)
      Specified by:
      handleNetBidibServiceInfo in interface NetBidibServiceInfoListener