Class MainNodeListActionListener

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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, int x, int y)
      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 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.
      Long 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.
    • Constructor Detail

      • MainNodeListActionListener

        public MainNodeListActionListener​(MainView view,
                                          MainModel model)
    • Method Detail

      • 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
      • 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
      • features

        public void features​(org.bidib.wizard.api.model.NodeInterface node,
                             int x,
                             int y)
        Description copied from interface: NodeListActionListener
        Show the node features dialog.
        Specified by:
        features 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
      • 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
      • 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
      • 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
      • 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
      • 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