org.apache.jmeter.report.gui

Class AbstractReportGui

Implemented Interfaces:
JMeterGUIComponent, Printable
Known Direct Subclasses:
BarChartGui, HTMLReportWriterGui, LineGraphGui, ReportGui, ReportPageGui, TableGui

public abstract class AbstractReportGui
extends AbstractJMeterGuiComponent

This is the abstract base for report gui's

Field Summary

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

namePanel

Constructor Summary

AbstractReportGui()

Method Summary

void
configureTestElement(TestElement element)
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.
protected Component
createTitleLabel()
This implementaion differs a bit from the normal jmeter gui. it uses a white background instead of the default grey.
String
getLabelResource()
Get the component's resource name, which getStaticLabel uses to derive the component's label in the local language.
Collection
getMenuCategories()
This is the list of add menu categories this gui component will be available under.
protected Container
makeTitlePanel()
This implementaion differs a bit from the normal jmeter gui. it uses a white background instead of the default grey.

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

AbstractReportGui

public AbstractReportGui()

Method Details

configureTestElement

public void configureTestElement(TestElement element)
Overrides:
configureTestElement in interface AbstractJMeterGuiComponent

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.
Specified by:
createPopupMenu in interface JMeterGUIComponent
Returns:
a JPopupMenu appropriate for the component.

createTitleLabel

protected Component createTitleLabel()
This implementaion differs a bit from the normal jmeter gui. it uses a white background instead of the default grey.
Overrides:
createTitleLabel in interface AbstractJMeterGuiComponent

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

getMenuCategories

public Collection getMenuCategories()
This is the list of add menu categories this gui component will be available under. For instance, if this represents a Controller, then the MenuFactory.CONTROLLERS category should be in the returned collection. When a user right-clicks on a tree element and looks through the "add" menu, which category your GUI component shows up in is determined by which categories are returned by this method. Most GUI's belong to only one category, but it is possible for a component to exist in multiple categories.
Specified by:
getMenuCategories in interface JMeterGUIComponent
Returns:
a Collection of Strings, where each element is one of the constants defined in MenuFactory
See Also:
MenuFactory

makeTitlePanel

protected Container makeTitlePanel()
This implementaion differs a bit from the normal jmeter gui. it uses a white background instead of the default grey.
Overrides:
makeTitlePanel in interface AbstractJMeterGuiComponent
Returns:
a panel containing the component title and name panel

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