Package uk.ac.gda.exafs.ui
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 Summary
ConstructorsConstructorDescriptionSampleParameterMotorPositionsComposite(org.eclipse.swt.widgets.Composite parent, List<SampleParameterMotorPosition> motorPositionsList) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValueListener(org.eclipse.richbeans.api.event.ValueListener listener) voiddispose()voidvoidorg.eclipse.swt.widgets.CompositegetValue()Update motor position values with latest values from GUI, return the motor position listbooleanbooleanisOn()voidvoidoff()voidon()voidremoveValueListener(org.eclipse.richbeans.api.event.ValueListener listener) voidsetEnabled(boolean isEnabled) voidsetFieldName(String fieldName) voidsetFilterList(List<String> filterList) voidsetParentEditor(RichBeanEditorPart parentEditor) voidSet the GUI up for given set of values loaded from XML beanvoid
-
Constructor Details
-
SampleParameterMotorPositionsComposite
public SampleParameterMotorPositionsComposite(org.eclipse.swt.widgets.Composite parent, List<SampleParameterMotorPosition> motorPositionsList)
-
-
Method Details
-
setParentEditor
-
makeComposite
public void makeComposite() -
getMainComposite
public org.eclipse.swt.widgets.Composite getMainComposite() -
updateGuiFromMotorPositions
public void updateGuiFromMotorPositions() -
getValue
Update motor position values with latest values from GUI, return the motor position list- Specified by:
getValuein interfaceorg.eclipse.richbeans.api.widget.IFieldWidget
-
setValue
Set the GUI up for given set of values loaded from XML bean- Specified by:
setValuein interfaceorg.eclipse.richbeans.api.widget.IFieldWidget
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.richbeans.api.widget.IFieldWidget
-
isOn
public boolean isOn()- Specified by:
isOnin interfaceorg.eclipse.richbeans.api.widget.IFieldWidget
-
setFilterList
-
off
public void off()- Specified by:
offin interfaceorg.eclipse.richbeans.api.widget.IFieldWidget
-
on
public void on()- Specified by:
onin interfaceorg.eclipse.richbeans.api.widget.IFieldWidget
-
isActivated
public boolean isActivated()- Specified by:
isActivatedin interfaceorg.eclipse.richbeans.api.widget.IFieldWidget
-
addValueListener
public void addValueListener(org.eclipse.richbeans.api.event.ValueListener listener) - Specified by:
addValueListenerin interfaceorg.eclipse.richbeans.api.widget.IFieldWidget
-
removeValueListener
public void removeValueListener(org.eclipse.richbeans.api.event.ValueListener listener) - Specified by:
removeValueListenerin interfaceorg.eclipse.richbeans.api.widget.IFieldWidget
-
fireValueListeners
public void fireValueListeners()- Specified by:
fireValueListenersin interfaceorg.eclipse.richbeans.api.widget.IFieldWidget
-
fireBoundsUpdaters
public void fireBoundsUpdaters()- Specified by:
fireBoundsUpdatersin interfaceorg.eclipse.richbeans.api.widget.IFieldWidget
-
getFieldName
- Specified by:
getFieldNamein interfaceorg.eclipse.richbeans.api.widget.IFieldWidget
-
setFieldName
- Specified by:
setFieldNamein interfaceorg.eclipse.richbeans.api.widget.IFieldWidget
-
setEnabled
public void setEnabled(boolean isEnabled) - Specified by:
setEnabledin interfaceorg.eclipse.richbeans.api.widget.IFieldWidget
-