org.apache.jmeter.assertions.gui

Class AbstractAssertionGui

Implemented Interfaces:
JMeterGUIComponent, Printable
Known Direct Subclasses:
AssertionGui, BeanShellAssertionGui, DurationAssertionGui, HTMLAssertionGui, MD5HexAssertionGUI, SizeAssertionGui, XMLAssertionGui, XMLSchemaAssertionGUI, XPathAssertionGui

public abstract class AbstractAssertionGui
extends AbstractJMeterGuiComponent

This is the base class for JMeter GUI components which manage assertions. Assertions which can be applied to different scopes (parent, children or both) need to use the createScopePanel() to add the panel to the GUI, and they also need to use saveScopeSettings() and showScopeSettings() to keep the test element and GUI in synch.

Field Summary

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

namePanel

Method Summary

void
clearGui()
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 JPanel
createScopePanel()
Create the scope settings panel.
Collection
getMenuCategories()
This is the list of menu categories this gui component will be available under.
protected void
saveScopeSettings(AbstractScopedAssertion assertion)
Save the scope settings in the test element.
protected void
showScopeSettings(AbstractScopedAssertion assertion)
Show the scope settings from the test element.

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

clearGui

public void clearGui()
Specified by:
clearGui in interface JMeterGUIComponent
Overrides:
clearGui 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.

This implementation returns menu items appropriate for most assertion components.

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

createScopePanel

protected JPanel createScopePanel()
Create the scope settings panel.
Returns:
the scope settings panel

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

saveScopeSettings

protected void saveScopeSettings(AbstractScopedAssertion assertion)
Save the scope settings in the test element.
Parameters:
assertion -

showScopeSettings

protected void showScopeSettings(AbstractScopedAssertion assertion)
Show the scope settings from the test element.
Parameters:
assertion -

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