Class MultiFieldsScannableControl

java.lang.Object
gda.factory.FindableBase
uk.ac.gda.client.livecontrol.LiveControlBase
uk.ac.gda.client.livecontrol.MultiFieldsScannableControl
All Implemented Interfaces:
Findable, LiveControl

public class MultiFieldsScannableControl extends LiveControlBase
A LiveControl for a Scannable with multiple input names and/or extra names, and for a ScannableGroup. If units for the scannable are set in its output format strings which must be separated with its value by a single space, the field unit will appear inside text box. Otherwise units for each fields of the scannable can be set in Spring bean definition as a map of field names to field units.
Since:
9.16
  • Constructor Details

    • MultiFieldsScannableControl

      public MultiFieldsScannableControl()
  • Method Details

    • createControl

      public void createControl(org.eclipse.swt.widgets.Composite composite)
      Description copied from interface: LiveControl
      This method will create the GUI for this control.
      Parameters:
      composite - The composite onto which the control should draw
    • getScannableName

      public String getScannableName()
    • setScannableName

      public void setScannableName(String scannableName)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class LiveControlBase
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class LiveControlBase
    • getDisplayName

      public String getDisplayName()
    • setDisplayName

      public void setDisplayName(String displayName)
    • getShowStop

      public Boolean getShowStop()
    • setShowStop

      public void setShowStop(Boolean showStop)
    • setUserUnits

      public void setUserUnits(Map<String,String> userUnits)