Class AbstractRandomTimerGui

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ClearGui, JMeterGUIComponent, Printable
Direct Known Subclasses:
GaussianRandomTimerGui, PoissonRandomTimerGui, UniformRandomTimerGui

public abstract class AbstractRandomTimerGui extends AbstractTimerGui
Abstract Random timer GUI.
See Also:
  • Constructor Details

    • AbstractRandomTimerGui

      protected AbstractRandomTimerGui()
      No-arg constructor.
  • Method Details

    • error

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

      public org.apache.jmeter.testelement.TestElement createTestElement()
      Create the test element underlying this GUI component.
      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
      modifyTestElement in class AbstractJMeterGuiComponent
      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
      configure in class AbstractJMeterGuiComponent
      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
      clearGui in class AbstractJMeterGuiComponent
    • getLabelResource

      public abstract String getLabelResource()
      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.

      the resource name
    • createRandomTimer

      protected abstract RandomTimer createRandomTimer()
      Create implementation of RandomTimer
    • getTimerDelayLabelKey

      protected abstract String getTimerDelayLabelKey()
      String timer delay label key
    • getTimerRangeLabelKey

      protected abstract String getTimerRangeLabelKey()
      String timer range label key
    • getDefaultDelay

      protected abstract String getDefaultDelay()
      String default delay value
    • getDefaultRange

      protected abstract String getDefaultRange()
      String default range value