org.apache.jmeter.timers.gui

Class ConstantTimerGui

Implemented Interfaces:
JMeterGUIComponent, Printable

public class ConstantTimerGui
extends AbstractTimerGui

The GUI for ConstantTimer.

Field Summary

Fields inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent

namePanel

Constructor Summary

ConstantTimerGui()
No-arg constructor.

Method Summary

void
clearGui()
Provides a default implementation that resets the name field to the value of getStaticLabel(), reset comment and sets enabled to true.
void
configure(TestElement el)
Configure this GUI component from the underlying TestElement.
TestElement
createTestElement()
Create the test element underlying this GUI component.
static void
error(Exception e, JComponent thrower)
Handle an error.
String
getLabelResource()
Get the component's resource name, which getStaticLabel uses to derive the component's label in the local language.
void
modifyTestElement(TestElement timer)
Modifies a given TestElement to mirror the data in the gui components.

Methods inherited from class org.apache.jmeter.timers.gui.AbstractTimerGui

createPopupMenu, getMenuCategories

Methods inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent

clearGui, configure, configureTestElement, createTitleLabel, getComment, getDocAnchor, getName, getNamePanel, getNode, getPrintableComponent, getStaticLabel, isEnabled, makeBorder, makeScrollPane, makeScrollPane, makeTitlePanel, setComment, setEnabled, setName, setNode

Constructor Details

ConstantTimerGui

public ConstantTimerGui()
No-arg constructor.

Method Details

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 JMeterGUIComponent
Overrides:
clearGui in interface AbstractJMeterGuiComponent

configure

public void configure(TestElement el)
Configure this GUI component from the underlying TestElement.
Specified by:
configure in interface JMeterGUIComponent
Overrides:
configure in interface AbstractJMeterGuiComponent

createTestElement

public TestElement createTestElement()
Create the test element underlying this GUI component.
Specified by:
createTestElement in interface JMeterGUIComponent

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()
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.
Specified by:
getLabelResource in interface JMeterGUIComponent
Returns:
the resource name

modifyTestElement

public void modifyTestElement(TestElement timer)
Modifies a given TestElement to mirror the data in the gui components.
Specified by:
modifyTestElement in interface JMeterGUIComponent

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.