Class ConstantTimerGui

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ClearGui, JMeterGUIComponent, Printable

public class ConstantTimerGui extends AbstractTimerGui
The GUI for ConstantTimer.
See Also:
  • Constructor Details

    • ConstantTimerGui

      public ConstantTimerGui()
  • Method Details

    • error

      public static void error(Exception e, JComponent thrower)
      Handle an error.
      Parameters:
      e - the Exception that was thrown.
      thrower - the JComponent that threw the Exception.
    • getLabelResource

      public String getLabelResource()
      Description copied from interface: JMeterGUIComponent
      Get the component's resource name, which getStaticLabel uses to derive the component's label in the local language. The resource name is fixed, and does not vary with the selected language.

      Normally this method should be overridden in preference to overriding getStaticLabel(). However where the resource name is not available or required, getStaticLabel() may be overridden instead.

      Returns:
      the resource name
    • createTestElement

      public org.apache.jmeter.testelement.TestElement createTestElement()
      Create the test element underlying this GUI component.
      Returns:
      the Test Element object that the GUI component represents.
      See Also:
    • modifyTestElement

      public void modifyTestElement(org.apache.jmeter.testelement.TestElement timer)
      Modifies a given TestElement to mirror the data in the gui components.
      Specified by:
      modifyTestElement in interface JMeterGUIComponent
      Overrides:
      modifyTestElement in class AbstractJMeterGuiComponent
      Parameters:
      timer - the TestElement to modify
      See Also:
    • configure

      public void configure(org.apache.jmeter.testelement.TestElement el)
      Configure this GUI component from the underlying TestElement.
      Specified by:
      configure in interface JMeterGUIComponent
      Overrides:
      configure in class AbstractJMeterGuiComponent
      Parameters:
      el - the TestElement to configure
      See Also:
    • clearGui

      public void clearGui()
      Provides a default implementation that resets the name field to the value of getStaticLabel(), reset comment and sets enabled to true. Your GUI may need more things cleared, in which case you should override, clear the extra fields, and still call super.clearGui().
      Specified by:
      clearGui in interface ClearGui
      Overrides:
      clearGui in class AbstractJMeterGuiComponent