Class JythonCommandControl

All Implemented Interfaces:
Findable, LiveControl

public class JythonCommandControl extends LiveControlBase
Subclass of 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 Details

    • button

      protected org.eclipse.swt.widgets.Button button
  • Constructor Details

    • JythonCommandControl

      public JythonCommandControl()
  • Method Details

    • runCommand

      protected void runCommand(String command)
    • createControl

      public void createControl(org.eclipse.swt.widgets.Composite composite)
      Description copied from interface: LiveControl
      This method will create the GUI for this control.
      Parameters:
      composite - The composite onto which the control should draw
    • setButtonText

      public void setButtonText(String buttonText)
    • setButtonTooltip

      public void setButtonTooltip(String buttonTooltip)
    • getCommand

      public String getCommand()
    • setCommand

      public void setCommand(String command)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class LiveControlBase
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class LiveControlBase
    • toString

      public String toString()
      Overrides:
      toString in class LiveControlBase