org.apache.jmeter.timers.gui

Class AbstractTimerGui

Implemented Interfaces:
JMeterGUIComponent, Printable
Known Direct Subclasses:
ConstantTimerGui, GaussianRandomTimerGui, UniformRandomTimerGui

public abstract class AbstractTimerGui
extends AbstractJMeterGuiComponent

This is the base class for JMeter GUI components which manage timers.
Version:
$Revision: 674365 $

Field Summary

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

namePanel

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

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

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.

This implementation returns menu items appropriate for most timer components.

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

getMenuCategories

public Collection getMenuCategories()
Specified by:
getMenuCategories in interface JMeterGUIComponent
Returns:
a Collection of Strings, where each element is one of the constants defined in MenuFactory

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