Package uk.ac.gda.client.livecontrol
Class BashCommandControl
java.lang.Object
gda.factory.FindableBase
uk.ac.gda.client.livecontrol.LiveControlBase
uk.ac.gda.client.livecontrol.BashCommandControl
- All Implemented Interfaces:
Findable,LiveControl
Subclass of
CommandControl to run the specified command in a Bash shell-
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
-
BashCommandControl
public BashCommandControl()
-
-
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
-