org.apache.jmeter.assertions.gui
Class AbstractAssertionGui
- JMeterGUIComponent, Printable
public abstract class AbstractAssertionGui
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.
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.
|
clearGui , configure , configureTestElement , createTitleLabel , getComment , getDocAnchor , getName , getNamePanel , getNode , getPrintableComponent , getStaticLabel , isEnabled , makeBorder , makeScrollPane , makeScrollPane , makeTitlePanel , setComment , setEnabled , setName , setNode |
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.
- createPopupMenu in interface JMeterGUIComponent
- a JPopupMenu appropriate for the component.
createScopePanel
protected JPanel createScopePanel()
Create the scope settings panel.
getMenuCategories
public Collection getMenuCategories()
This is the list of menu categories this gui component will be available
under. This implementation returns
MenuFactory.ASSERTIONS
, which is
appropriate for most assertion components.
- getMenuCategories in interface JMeterGUIComponent
- 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.
showScopeSettings
protected void showScopeSettings(AbstractScopedAssertion assertion)
Show the scope settings from the test element.
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.