Class StepControlController

java.lang.Object
org.bidib.wizard.mvc.stepcontrol.controller.StepControlController
All Implemented Interfaces:
org.bidib.wizard.api.model.listener.CvDefinitionListener, org.bidib.wizard.api.model.listener.PortListListener, AccessoryRequestListener, StepControlControllerInterface

public class StepControlController extends Object implements org.bidib.wizard.api.model.listener.CvDefinitionListener, StepControlControllerInterface, org.bidib.wizard.api.model.listener.PortListListener
  • Constructor Details

  • Method Details

    • start

      public void start(TabStatusListener tabStatusListener)
    • getComponent

      public StepControlPanel getComponent()
    • triggerLoadCvValues

      public void triggerLoadCvValues()
      Description copied from interface: StepControlControllerInterface
      Trigger load the CV values of the step control.
      Specified by:
      triggerLoadCvValues in interface StepControlControllerInterface
    • cvDefinitionValuesChanged

      public void cvDefinitionValuesChanged(boolean read, List<String> changedNames)
      Specified by:
      cvDefinitionValuesChanged in interface org.bidib.wizard.api.model.listener.CvDefinitionListener
    • getConfigureAspectsListModel

      public com.jgoodies.common.collect.ArrayListModel<StepControlAspect> getConfigureAspectsListModel()
      Specified by:
      getConfigureAspectsListModel in interface StepControlControllerInterface
      Returns:
      the list model of aspects
    • getSelectedNode

      public org.bidib.wizard.api.model.NodeInterface getSelectedNode()
    • scheduleAccessoryStateCheck

      public void scheduleAccessoryStateCheck()
    • setMotorPortValue

      public void setMotorPortValue(org.bidib.wizard.model.ports.MotorPort motorPort)
      Description copied from interface: StepControlControllerInterface
      Set the new value of the motor port.
      Specified by:
      setMotorPortValue in interface StepControlControllerInterface
      Parameters:
      motorPort - the motor port
    • getPortClass

      public Class<?> getPortClass()
      Specified by:
      getPortClass in interface org.bidib.wizard.api.model.listener.PortListListener
    • triggerSoundPort

      public void triggerSoundPort(int portId, org.bidib.wizard.model.status.SoundPortStatus soundPortStatus)
      Specified by:
      triggerSoundPort in interface StepControlControllerInterface
      Parameters:
      portId - the sound port to trigger
      soundPortStatus - the sound port status
    • listChanged

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

      public void refreshPorts()
      Specified by:
      refreshPorts in interface org.bidib.wizard.api.model.listener.PortListListener
    • setSoundActive

      public void setSoundActive(boolean soundActive)
      Description copied from interface: StepControlControllerInterface
      Set the sound active or mute.
      Specified by:
      setSoundActive in interface StepControlControllerInterface
      Parameters:
      soundActive - the sound active flag
    • activateAspect

      public void activateAspect(org.bidib.wizard.api.model.Accessory accessory, int aspectNumber)
      Description copied from interface: AccessoryRequestListener
      Activate the aspect.
      Specified by:
      activateAspect in interface AccessoryRequestListener
      Parameters:
      accessory - the accessory
      aspectNumber - the aspect number
    • storeAccessory

      public void storeAccessory(org.bidib.wizard.api.model.Accessory accessory)
      Description copied from interface: AccessoryRequestListener
      Store the accessory on the node.
      Specified by:
      storeAccessory in interface AccessoryRequestListener
      Parameters:
      accessory - the accessory