Package uk.ac.gda.ui.views.synoptic
Class LiveControlsScannableGroup
java.lang.Object
gda.factory.FindableBase
uk.ac.gda.client.livecontrol.LiveControlBase
uk.ac.gda.client.livecontrol.LiveControlGroup
uk.ac.gda.ui.views.synoptic.LiveControlsScannableGroup
- All Implemented Interfaces:
Findable,LiveControl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateControl(org.eclipse.swt.widgets.Composite composite) This method will create the GUI for this control.booleanvoidsetDescriptions(List<String> descriptions) Set the description for each widget in the group.voidsetDisplayNameWidth(int displayNameWidth) voidsetHorizontalLayout(boolean horizontalLayout) voidsetIncrementTextWidth(int incrementTextWidth) voidsetReadOnly(boolean readOnly) voidsetReadOnlyList(List<Boolean> readOnly) voidsetScannableGroup(IScannableGroup crystalScannableGroup) voidsetScannableGroupName(String name) voidsetShowIncrement(Boolean showIncrement) voidsetShowStop(boolean showStop) voidsetWidgetWidth(int widgetWidth) voidToggle states of showIncrement, showStop and layout flags when toggle button in view toolbar are pressedvoidvoidMethods inherited from class uk.ac.gda.client.livecontrol.LiveControlGroup
equals, hashCode, setControls, setEqualWidthColumns, setNumColumnsMethods inherited from class uk.ac.gda.client.livecontrol.LiveControlBase
dispose, getGroup, setGroup, toStringMethods inherited from class gda.factory.FindableBase
getName, setName
-
Constructor Details
-
LiveControlsScannableGroup
public LiveControlsScannableGroup()
-
-
Method Details
-
setScannableGroupName
- Throws:
FactoryException
-
setScannableGroup
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite composite) Description copied from interface:LiveControlThis method will create the GUI for this control.- Specified by:
createControlin interfaceLiveControl- Overrides:
createControlin classLiveControlGroup- Parameters:
composite- The composite onto which the control should draw
-
getShowIncrement
-
setShowIncrement
-
isReadOnly
public boolean isReadOnly() -
setReadOnly
public void setReadOnly(boolean readOnly) -
setReadOnlyList
-
setDisplayNameWidth
public void setDisplayNameWidth(int displayNameWidth) -
setWidgetWidth
public void setWidgetWidth(int widgetWidth) -
setHorizontalLayout
public void setHorizontalLayout(boolean horizontalLayout) -
setIncrementTextWidth
public void setIncrementTextWidth(int incrementTextWidth) -
setShowStop
public void setShowStop(boolean showStop) -
setDescriptions
Set the description for each widget in the group.- If empty, the scannable name will be used.
- If there are fewer descriptions than scannables, the description indices will 'wrap around'. i.e. description index = widget index % num descriptions
- Parameters:
descriptions-
-
toggleIncrementControlDisplay
public void toggleIncrementControlDisplay()Toggle states of showIncrement, showStop and layout flags when toggle button in view toolbar are pressed- Overrides:
toggleIncrementControlDisplayin classLiveControlGroup
-
toggleShowStopButton
public void toggleShowStopButton()- Overrides:
toggleShowStopButtonin classLiveControlGroup
-
toggleLayoutControl
public void toggleLayoutControl()- Overrides:
toggleLayoutControlin classLiveControlGroup
-