Class StepControlPanel

  • All Implemented Interfaces:
    org.bidib.wizard.api.model.listener.PortListener<org.bidib.wizard.model.ports.MotorPort>, org.bidib.wizard.api.model.listener.PortValueListener<org.bidib.wizard.model.ports.MotorPort>, org.bidib.wizard.api.script.Scripting, TabPanelProvider, org.bidib.wizard.common.script.switching.AccessoryScripting, CvDefinitionPanelProvider, TabSelectionListener

    public class StepControlPanel
    extends Object
    implements TabSelectionListener, CvDefinitionPanelProvider, TabPanelProvider, org.bidib.wizard.api.model.listener.PortValueListener<org.bidib.wizard.model.ports.MotorPort>, org.bidib.wizard.common.script.switching.AccessoryScripting
    • Method Detail

      • createComponent

        public void createComponent()
        Create the step control panel component.
      • firePerformFlipRotate

        protected void firePerformFlipRotate()
      • fireGetPosition

        protected void fireGetPosition()
      • fireSetDirectPosition

        protected void fireSetDirectPosition​(Integer directPosition)
      • setTurntableDegrees

        public void setTurntableDegrees​(double degree)
      • addCvDefinitionRequestListener

        public void addCvDefinitionRequestListener​(org.bidib.wizard.api.model.listener.CvDefinitionRequestListener l)
      • getName

        public String getName()
      • tabSelected

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

        public void resetCvValuesLoaded()
      • triggerLoadCvValues

        public void triggerLoadCvValues()
      • cvDefinitionChanged

        public void cvDefinitionChanged()
        The CV definition of the node has changed.
      • cvDefinitionValuesChanged

        public void cvDefinitionValuesChanged​(boolean read,
                                              List<String> changedNames)
        The values of the current CV definition have changed. Get the cv values and update the stepControlModel.
      • executionStateChanged

        public void executionStateChanged​(org.bidib.jbidibc.messages.enums.AccessoryExecutionState executionState,
                                          Integer accessoryId,
                                          Integer aspect,
                                          org.bidib.jbidibc.messages.AccessoryState accessoryState)
      • labelChanged

        public void labelChanged​(org.bidib.wizard.model.ports.MotorPort port,
                                 String label)
        Specified by:
        labelChanged in interface org.bidib.wizard.api.model.listener.PortListener<org.bidib.wizard.model.ports.MotorPort>
      • valueChanged

        public void valueChanged​(org.bidib.wizard.api.model.NodeInterface node,
                                 org.bidib.wizard.model.ports.MotorPort port)
        Specified by:
        valueChanged in interface org.bidib.wizard.api.model.listener.PortValueListener<org.bidib.wizard.model.ports.MotorPort>
      • configChanged

        public void configChanged​(org.bidib.wizard.api.model.NodeInterface node,
                                  org.bidib.wizard.model.ports.MotorPort port)
        Specified by:
        configChanged in interface org.bidib.wizard.api.model.listener.PortListener<org.bidib.wizard.model.ports.MotorPort>
      • getPortClass

        public Class<?> getPortClass()
        Specified by:
        getPortClass in interface org.bidib.wizard.api.model.listener.PortListener<org.bidib.wizard.model.ports.MotorPort>
        Specified by:
        getPortClass in interface org.bidib.wizard.api.model.listener.PortValueListener<org.bidib.wizard.model.ports.MotorPort>
      • setActiveAspect

        public void setActiveAspect​(org.bidib.wizard.api.model.SwitchingNodeInterface node,
                                    int accessoryNumber,
                                    int aspectNumber)
        Specified by:
        setActiveAspect in interface org.bidib.wizard.common.script.switching.AccessoryScripting
      • getAccessoryExecutionState

        public org.bidib.jbidibc.messages.enums.AccessoryExecutionState getAccessoryExecutionState​(org.bidib.wizard.api.model.SwitchingNodeInterface node,
                                                                                                   int accessoryNumber)
        Specified by:
        getAccessoryExecutionState in interface org.bidib.wizard.common.script.switching.AccessoryScripting