org.apache.jmeter.protocol.jms.control.gui

Class JMSPublisherGui

Implemented Interfaces:
ActionListener, ChangeListener, JMeterGUIComponent, Printable

public class JMSPublisherGui
extends AbstractSamplerGui
implements ActionListener, ChangeListener

This is the GUI for JMS Publisher
Created on: October 13, 2003

Field Summary

static String
USE_FILE_RSC
static String
USE_RANDOM_RSC

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

namePanel

Constructor Summary

JMSPublisherGui()
When constructing a new component, this takes care of basic tasks like setting up the Name Panel and assigning the class's static label as the name to start.

Method Summary

void
actionPerformed(ActionEvent event)
method from ActionListener
void
clearGui()
Provides a default implementation that resets the name field to the value of getStaticLabel(), reset comment and sets enabled to true.
void
configure(TestElement el)
the implementation loads the URL and the soap action for the request.
TestElement
createTestElement()
String
getLabelResource()
the name of the property for the JMSPublisherGui is jms_publisher.
void
modifyTestElement(TestElement s)
Modifies a given TestElement to mirror the data in the gui components.
void
stateChanged(ChangeEvent event)
When a widget state changes, it will notify this class so we can enable/disable the correct items.

Methods inherited from class org.apache.jmeter.samplers.gui.AbstractSamplerGui

createPopupMenu, getMenuCategories

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

Field Details

USE_FILE_RSC

public static final String USE_FILE_RSC

USE_RANDOM_RSC

public static final String USE_RANDOM_RSC

Constructor Details

JMSPublisherGui

public JMSPublisherGui()
When constructing a new component, this takes care of basic tasks like setting up the Name Panel and assigning the class's static label as the name to start.

Method Details

actionPerformed

public void actionPerformed(ActionEvent event)
method from ActionListener
Parameters:
event - that occurred

clearGui

public void clearGui()
Provides a default implementation that resets the name field to the value of getStaticLabel(), reset comment and sets enabled to true. Your GUI may need more things cleared, in which case you should override, clear the extra fields, and still call super.clearGui().
Specified by:
clearGui in interface JMeterGUIComponent
Overrides:
clearGui in interface AbstractJMeterGuiComponent

configure

public void configure(TestElement el)
the implementation loads the URL and the soap action for the request.
Specified by:
configure in interface JMeterGUIComponent
Overrides:
configure in interface AbstractJMeterGuiComponent

createTestElement

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

getLabelResource

public String getLabelResource()
the name of the property for the JMSPublisherGui is jms_publisher.
Specified by:
getLabelResource in interface JMeterGUIComponent

modifyTestElement

public void modifyTestElement(TestElement s)
Modifies a given TestElement to mirror the data in the gui components.
Specified by:
modifyTestElement in interface JMeterGUIComponent

stateChanged

public void stateChanged(ChangeEvent event)
When a widget state changes, it will notify this class so we can enable/disable the correct items.

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