org.apache.jmeter.control.gui

Class WorkBenchGui

Implemented Interfaces:
JMeterGUIComponent, Printable

public class WorkBenchGui
extends AbstractJMeterGuiComponent

JMeter GUI component representing a work bench where users can make preparations for the test plan.

Field Summary

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

namePanel

Constructor Summary

WorkBenchGui()
Create a new WorkbenchGui.

Method Summary

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()
String
getLabelResource()
Collection
getMenuCategories()
This is the list of menu categories this gui component will be available under.
void
modifyTestElement(TestElement wb)

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

WorkBenchGui

public WorkBenchGui()
Create a new WorkbenchGui.

Method Details

createPopupMenu

public 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.

The WorkBench returns a popup menu allowing you to add anything.

Specified by:
createPopupMenu in interface JMeterGUIComponent
Returns:
a JPopupMenu appropriate for the component.

createTestElement

public TestElement createTestElement()
Specified by:
createTestElement in interface JMeterGUIComponent

getLabelResource

public String getLabelResource()
Specified by:
getLabelResource in interface JMeterGUIComponent

getMenuCategories

public Collection getMenuCategories()
This is the list of menu categories this gui component will be available under. This implementation returns null, since the WorkBench appears at the top level of the tree and cannot be added elsewhere.
Specified by:
getMenuCategories in interface JMeterGUIComponent
Returns:
a Collection of Strings, where each element is one of the constants defined in MenuFactory

modifyTestElement

public void modifyTestElement(TestElement wb)
Specified by:
modifyTestElement in interface JMeterGUIComponent

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