public interface JMeterGUIComponent extends ClearGui
Modifier and Type | Method and Description |
---|---|
void |
configure(TestElement element)
The GUI must be able to extract the data from the TestElement and update
all GUI fields to represent those data.
|
JPopupMenu |
createPopupMenu()
When a user right-clicks on the component in the test tree, or selects
the edit menu when the component is selected, the component will be asked
to return a JPopupMenu that provides all the options available to the
user from this component.
|
TestElement |
createTestElement()
JMeter test components are separated into a model and a GUI
representation.
|
String |
getDocAnchor()
Get the component's document anchor name.
|
String |
getLabelResource()
Get the component's resource name, which getStaticLabel uses to derive
the component's label in the local language.
|
Collection<String> |
getMenuCategories()
This is the list of add menu categories this gui component will be
available under.
|
String |
getName()
Gets the name of the JMeter GUI component.
|
String |
getStaticLabel()
Get the component's label.
|
boolean |
isEnabled()
Test GUI elements can be disabled, in which case they do not become part
of the test when run.
|
void |
modifyTestElement(TestElement element)
GUI components are responsible for populating TestElements they create
with the data currently held in the GUI components.
|
void |
setEnabled(boolean enabled)
Set whether this component is enabled.
|
void |
setName(String name)
Sets the name of the JMeter GUI Component.
|
void setName(String name)
name
- the name of the componentString getName()
String getStaticLabel()
getLabelResource()
String getLabelResource()
String getDocAnchor()
TestElement createTestElement()
void modifyTestElement(TestElement element)
element
- the TestElement to modifyboolean isEnabled()
void setEnabled(boolean enabled)
enabled
- true for enabled, false for disabled.JPopupMenu createPopupMenu()
void configure(TestElement element)
element
- the TestElement to configureCollection<String> getMenuCategories()
MenuFactory
Copyright © 1998-2017 Apache Software Foundation. All Rights Reserved.