Class MacroListPanel

    • Constructor Detail

      • MacroListPanel

        public MacroListPanel​(MacroPanelController macroPanelController,
                              MainModel model,
                              TabVisibilityListener tabVisibilityListener,
                              org.bidib.wizard.common.service.SettingsService settingsService,
                              org.bidib.wizard.common.labels.WizardLabelWrapper wizardLabelWrapper,
                              org.bidib.wizard.common.labels.DefaultWizardLabelFactory bidibLabelFactory,
                              StatusBar statusBar)
    • Method Detail

      • setMacroPanelListener

        public void setMacroPanelListener​(MacroPanelListener macroPanelListener)
        Parameters:
        macroPanelListener - the macroPanelListener
      • setEnabled

        public void setEnabled​(boolean enabled)
      • listChanged

        public void listChanged()
        Specified by:
        listChanged in interface org.bidib.wizard.api.model.listener.MacroListListener
      • macroChanged

        public void macroChanged()
        Description copied from interface: MacroSelectionListener
        The selected macro has changed.
        Specified by:
        macroChanged in interface org.bidib.wizard.api.model.listener.MacroListListener
        Specified by:
        macroChanged in interface MacroSelectionListener
      • pendingChangesChanged

        public void pendingChangesChanged()
        Specified by:
        pendingChangesChanged in interface org.bidib.wizard.api.model.listener.MacroListListener
      • changeLabel

        public void changeLabel​(org.bidib.wizard.common.script.node.types.TargetType portType)
        Specified by:
        changeLabel in interface ChangeLabelSupport
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • exportMacro

        public void exportMacro​(org.bidib.wizard.api.model.Macro macro)
        Description copied from interface: MacroActionListener
        Export the macro to an external file.
        Specified by:
        exportMacro in interface MacroActionListener
        Parameters:
        macro - the macro
      • replaceMacro

        public void replaceMacro​(org.bidib.wizard.api.model.Macro macro,
                                 boolean saveOnNode)
      • labelChanged

        public void labelChanged​(org.bidib.wizard.api.model.Macro macro,
                                 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.Macro>
        Parameters:
        macro - the instance
        label - the new label
      • reloadMacro

        public void reloadMacro​(org.bidib.wizard.api.model.Macro macro)
        Description copied from interface: MacroActionListener
        Reload macro from node.
        Specified by:
        reloadMacro in interface MacroActionListener
        Parameters:
        macro - the macro
      • saveMacro

        public void saveMacro​(org.bidib.wizard.api.model.Macro macro)
        Description copied from interface: MacroActionListener
        Write the macro to the node into persistent memory.
        Specified by:
        saveMacro in interface MacroActionListener
        Parameters:
        macro - the macro
      • startMacro

        public void startMacro​(org.bidib.wizard.api.model.Macro macro,
                               boolean transferBeforeStart)
        Description copied from interface: MacroActionListener
        Start the macro.
        Specified by:
        startMacro in interface MacroActionListener
        Parameters:
        macro - the macro
        transferBeforeStart - transfer macro to node before start
      • stopMacro

        public void stopMacro​(org.bidib.wizard.api.model.Macro macro)
        Description copied from interface: MacroActionListener
        Stop the macro.
        Specified by:
        stopMacro in interface MacroActionListener
        Parameters:
        macro - the macro
      • transferMacro

        public void transferMacro​(org.bidib.wizard.api.model.Macro macro)
        Description copied from interface: MacroActionListener
        Write the macro to the node into transient memory.
        Specified by:
        transferMacro in interface MacroActionListener
        Parameters:
        macro - the macro
      • initializeMacro

        public void initializeMacro​(org.bidib.wizard.api.model.Macro macro)
        Description copied from interface: MacroActionListener
        Clear the entries of the macro and set default values for cycles.
        Specified by:
        initializeMacro in interface MacroActionListener
        Parameters:
        macro - the macro
      • hasPendingChanges

        public boolean hasPendingChanges()
        Specified by:
        hasPendingChanges in interface PendingChangesAware
        Returns:
        true pending changes detected, false no pending changes detected
      • addLabelChangedListener

        public void addLabelChangedListener​(LabelChangedListener<org.bidib.wizard.api.model.Macro> l)
      • fireLabelChanged

        protected void fireLabelChanged​(org.bidib.wizard.api.model.Macro macro,
                                        String label)
      • tabSelected

        public void tabSelected​(boolean selected)
        Specified by:
        tabSelected in interface TabSelectionListener
        Parameters:
        selected - the tab is selected
      • refreshView

        public void refreshView()
      • notifyMacrosChanged

        public void notifyMacrosChanged()
      • selectedNodeChanged

        public void selectedNodeChanged​(org.bidib.wizard.api.model.NodeInterface selectedNode)
        Specified by:
        selectedNodeChanged in interface org.bidib.wizard.api.model.listener.NodeSelectionListener