org.apache.jmeter.testbeans.gui

Class TestBeanGUI

Implemented Interfaces:
JMeterGUIComponent, Printable

public class TestBeanGUI
extends AbstractJMeterGuiComponent
implements JMeterGUIComponent

JMeter GUI element editing for TestBean elements.

The actual GUI is always a bean customizer: if the bean descriptor provides one, it will be used; otherwise, a GenericTestBeanCustomizer will be created for this purpose.

Those customizers deviate from the standards only in that, instead of a bean, they will receive a Map in the setObject call. This will be a property name to value Map. The customizer is also in charge of initializing empty Maps with sensible initial values.

If the provided Customizer class implements the SharedCustomizer interface, the same instance of the customizer will be reused for all beans of the type: setObject(map) can then be called multiple times. Otherwise, one separate instance will be used for each element. For efficiency reasons, most customizers should implement SharedCustomizer.

Field Summary

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

namePanel

Constructor Summary

TestBeanGUI()
TestBeanGUI(Class testBeanClass)

Method Summary

void
clearGui()
void
configure(TestElement element)
JPopupMenu
createPopupMenu()
TestElement
createTestElement()
String
getLabelResource()
Collection
getMenuCategories()
String
getStaticLabel()
void
modifyTestElement(TestElement 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

Constructor Details

TestBeanGUI

public TestBeanGUI()

TestBeanGUI

public TestBeanGUI(Class testBeanClass)

Method Details

clearGui

public void clearGui()
Specified by:
clearGui in interface JMeterGUIComponent
Overrides:
clearGui in interface AbstractJMeterGuiComponent

configure

public void configure(TestElement element)
Specified by:
configure in interface JMeterGUIComponent
Overrides:
configure in interface AbstractJMeterGuiComponent

createPopupMenu

public JPopupMenu createPopupMenu()
Specified by:
createPopupMenu in interface JMeterGUIComponent

createTestElement

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

getLabelResource

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

getMenuCategories

public Collection getMenuCategories()
Specified by:
getMenuCategories in interface JMeterGUIComponent

getStaticLabel

public String getStaticLabel()
Specified by:
getStaticLabel in interface JMeterGUIComponent
Overrides:
getStaticLabel in interface AbstractJMeterGuiComponent

modifyTestElement

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

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