Class AbstractRandomTimerGui

    • Constructor Detail

      • AbstractRandomTimerGui

        public AbstractRandomTimerGui()
        No-arg constructor.
    • Method Detail

      • 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.
      • 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
      • 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 overriden in preference to overriding getStaticLabel(). However where the resource name is not available or required, getStaticLabel() may be overridden instead.
        Returns:
        the resource name
      • createRandomTimer

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

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

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

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

        protected abstract String getDefaultRange()
        Returns:
        String default range value