Package uk.ac.gda.client.livecontrol
Class JythonCommandControl
java.lang.Object
gda.factory.FindableBase
uk.ac.gda.client.livecontrol.LiveControlBase
uk.ac.gda.client.livecontrol.JythonCommandControl
- All Implemented Interfaces:
Findable,LiveControl
Subclass of
Example bean definition:
CommandControl to run a single command in the Jython interpreter
Example bean definition:
<bean id="removeLens" class="uk.ac.gda.client.livecontrol.JythonCommandControl">
<property name="command" value="sequences.remove_lens()" />
<property name="buttonText" value="Remove Lens" />
</bean>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateControl(org.eclipse.swt.widgets.Composite composite) This method will create the GUI for this control.booleaninthashCode()protected voidrunCommand(String command) voidsetButtonText(String buttonText) voidsetButtonTooltip(String buttonTooltip) voidsetCommand(String command) toString()Methods inherited from class uk.ac.gda.client.livecontrol.LiveControlBase
dispose, getGroup, setGroupMethods inherited from class gda.factory.FindableBase
getName, setName
-
Field Details
-
button
protected org.eclipse.swt.widgets.Button button
-
-
Constructor Details
-
JythonCommandControl
public JythonCommandControl()
-
-
Method Details
-
runCommand
-
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
-
setButtonText
-
setButtonTooltip
-
getCommand
-
setCommand
-
hashCode
public int hashCode()- Overrides:
hashCodein classLiveControlBase
-
equals
- Overrides:
equalsin classLiveControlBase
-
toString
- Overrides:
toStringin classLiveControlBase
-