Class SampleParameterMotorPositionsComposite

java.lang.Object
uk.ac.gda.exafs.ui.SampleParameterMotorPositionsComposite
All Implemented Interfaces:
org.eclipse.richbeans.api.widget.IFieldWidget

public class SampleParameterMotorPositionsComposite extends Object implements org.eclipse.richbeans.api.widget.IFieldWidget
Class with GUI controls to allow user to edit generic motor parameters. i.e. List of SampleParameterMotorPositions - parameters for scannables that will be moved at start of a scan. Used in B18SampleParametersUIEditor
Since:
1/2/2018.
  • Constructor Details

    • SampleParameterMotorPositionsComposite

      public SampleParameterMotorPositionsComposite(org.eclipse.swt.widgets.Composite parent, List<SampleParameterMotorPosition> motorPositionsList)
  • Method Details

    • setParentEditor

      public void setParentEditor(RichBeanEditorPart parentEditor)
    • makeComposite

      public void makeComposite()
    • getMainComposite

      public org.eclipse.swt.widgets.Composite getMainComposite()
    • updateGuiFromMotorPositions

      public void updateGuiFromMotorPositions()
    • getValue

      public Object getValue()
      Update motor position values with latest values from GUI, return the motor position list
      Specified by:
      getValue in interface org.eclipse.richbeans.api.widget.IFieldWidget
    • setValue

      public void setValue(Object value)
      Set the GUI up for given set of values loaded from XML bean
      Specified by:
      setValue in interface org.eclipse.richbeans.api.widget.IFieldWidget
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.eclipse.richbeans.api.widget.IFieldWidget
    • isOn

      public boolean isOn()
      Specified by:
      isOn in interface org.eclipse.richbeans.api.widget.IFieldWidget
    • setFilterList

      public void setFilterList(List<String> filterList)
    • off

      public void off()
      Specified by:
      off in interface org.eclipse.richbeans.api.widget.IFieldWidget
    • on

      public void on()
      Specified by:
      on in interface org.eclipse.richbeans.api.widget.IFieldWidget
    • isActivated

      public boolean isActivated()
      Specified by:
      isActivated in interface org.eclipse.richbeans.api.widget.IFieldWidget
    • addValueListener

      public void addValueListener(org.eclipse.richbeans.api.event.ValueListener listener)
      Specified by:
      addValueListener in interface org.eclipse.richbeans.api.widget.IFieldWidget
    • removeValueListener

      public void removeValueListener(org.eclipse.richbeans.api.event.ValueListener listener)
      Specified by:
      removeValueListener in interface org.eclipse.richbeans.api.widget.IFieldWidget
    • fireValueListeners

      public void fireValueListeners()
      Specified by:
      fireValueListeners in interface org.eclipse.richbeans.api.widget.IFieldWidget
    • fireBoundsUpdaters

      public void fireBoundsUpdaters()
      Specified by:
      fireBoundsUpdaters in interface org.eclipse.richbeans.api.widget.IFieldWidget
    • getFieldName

      public String getFieldName()
      Specified by:
      getFieldName in interface org.eclipse.richbeans.api.widget.IFieldWidget
    • setFieldName

      public void setFieldName(String fieldName)
      Specified by:
      setFieldName in interface org.eclipse.richbeans.api.widget.IFieldWidget
    • setEnabled

      public void setEnabled(boolean isEnabled)
      Specified by:
      setEnabled in interface org.eclipse.richbeans.api.widget.IFieldWidget