Class CountDownControl
java.lang.Object
gda.factory.FindableBase
uk.ac.gda.client.livecontrol.LiveControlBase
uk.ac.gda.client.live.stream.controls.custom.widgets.CountDownControl
- All Implemented Interfaces:
Findable,LiveControl
A Spring configure bean for
LiveControl used to populate items in LiveControlsView.
It has 5 properties: a group name, a display name, an IObservable to providing count down time, a time unit, and text width.
Among these, only the IObservable instance is essential.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateControl(org.eclipse.swt.widgets.Composite composite) This method will create the GUI for this control.booleangda.observable.IObservableinthashCode()voidinit()voidsetDisplayName(String displayName) voidsetObservable(gda.observable.IObservable observable) voidsetTextWidth(Integer incrementTextWidth) voidsetUserUnits(String userUnits) toString()Methods inherited from class uk.ac.gda.client.livecontrol.LiveControlBase
dispose, getGroup, setGroupMethods inherited from class gda.factory.FindableBase
getName, setName
-
Constructor Details
-
CountDownControl
public CountDownControl()
-
-
Method Details
-
getDisplayName
-
setDisplayName
-
getUserUnits
-
setUserUnits
-
getTextWidth
-
setTextWidth
-
hashCode
public int hashCode()- Overrides:
hashCodein classLiveControlBase
-
equals
- Overrides:
equalsin classLiveControlBase
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite composite) Description copied from interface:LiveControlThis method will create the GUI for this control.- Parameters:
composite- The composite onto which the control should draw
-
init
public void init() -
toString
- Overrides:
toStringin classLiveControlBase
-
getObservable
public gda.observable.IObservable getObservable() -
setObservable
public void setObservable(gda.observable.IObservable observable)
-