Class SensorSourceComponent

java.lang.Object
Array.sensors.swing.SensorSourceComponent

public class SensorSourceComponent extends Object
  • Constructor Details Link icon

    • SensorSourceComponent Link icon

      public SensorSourceComponent(ArraySensorFieldType sensorType, boolean fixedOption, boolean defaultOption)
  • Method Details Link icon

    • addActionListenr Link icon

      public void addActionListenr(ActionListener actionListener)
      Add an action listener to the drop down list.
      Parameters:
      actionListener -
    • fillDropDown Link icon

      public void fillDropDown()
    • setParameterType Link icon

      public void setParameterType(ArrayParameterType paramType)
      Set the type of parameter being used, fixed, default or sensor
      Parameters:
      paramType -
    • getParameterType Link icon

      public ArrayParameterType getParameterType()
      Get the type of parameter being used, fixed, default or sensor
      Returns:
    • setDataBlock Link icon

      public boolean setDataBlock(PamDataBlock aDataBlock)
      Set the selected datablock for sensor data. Before calling this, you should call fillDropDown to make sure list of blocks is up to date.
      Parameters:
      aDataBlock - datablock to select
      Returns:
      true if that block was selected OK, i.e. it was in the list.
    • getDataBlock Link icon

      public PamDataBlock getDataBlock()
      Returns:
      Currently selected datablock for this sensor (can be null)
    • getComponent Link icon

      public JComponent getComponent()