|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.apache.jmeter.gui.AbstractJMeterGuiComponent
org.apache.jmeter.config.gui.AbstractConfigGui
org.apache.jmeter.config.gui.ArgumentsPanel
A GUI panel allowing the user to enter name-value argument pairs. These arguments (or parameters) are usually used to provide configuration values for some other component.
Nested Class Summary | |
static class |
ArgumentsPanel.Test
Tests for the ArgumentsPanel component. |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
static String[] |
COLUMN_NAMES
|
protected ObjectTableModel |
tableModel
The model for the arguments table. |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
ArgumentsPanel()
Create a new ArgumentsPanel as a standalone component. |
|
ArgumentsPanel(String label)
Create a new ArgumentsPanel as an embedded component, using the specified title. |
Method Summary | |
void |
actionPerformed(ActionEvent e)
Invoked when an action occurs. |
protected void |
addArgument()
Add a new argument row to the table. |
protected void |
checkDeleteStatus()
Enable or disable the delete button depending on whether or not there is a row to be deleted. |
void |
clear()
Clear all rows from the table. |
void |
configure(TestElement el)
A newly created component can be initialized with the contents of a Test Element object by calling this method. |
TestElement |
createTestElement()
JMeter test components are separated into a model and a GUI representation. |
protected void |
deleteArgument()
Remove the currently selected argument from the table. |
protected JButton |
getAddButton()
Get the button used to add rows to the table. |
protected JButton |
getDeleteButton()
Get the button used to delete rows from the table. |
String |
getLabelResource()
Get the component's resource name, which getStaticLabel uses to derive the component's label in the local language. |
Collection |
getMenuCategories()
This is the list of menu categories this gui component will be available under. |
protected JTable |
getTable()
Get the table used to enter arguments. |
protected JLabel |
getTableLabel()
Get the title label for this component. |
protected void |
initializeTableModel()
Initialize the table model used for the arguments table. |
protected Component |
makeLabelPanel()
Create a panel containing the title label for the table. |
protected Object |
makeNewArgument()
Create a new Argument object. |
void |
modifyTestElement(TestElement args)
GUI components are responsible for populating TestElements they create with the data currently held in the GUI components. |
protected void |
sizeColumns(JTable table)
Resize the table columns to appropriate widths. |
protected void |
stopTableEditing()
Stop any editing that is currently being done on the table. |
Methods inherited from class org.apache.jmeter.config.gui.AbstractConfigGui |
createPopupMenu |
Methods inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent |
configureTestElement, createTitleLabel, getDocAnchor, getName, getNamePanel, getNode, getStaticLabel, isEnabled, makeBorder, makeScrollPane, makeScrollPane, makeTitlePanel, setEnabled, setName, setNode |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected transient ObjectTableModel tableModel
public static final String[] COLUMN_NAMES
Constructor Detail |
public ArgumentsPanel()
public ArgumentsPanel(String label)
label
- the title for the component.Method Detail |
public Collection getMenuCategories()
getMenuCategories
in interface JMeterGUIComponent
getMenuCategories
in class AbstractConfigGui
public String getLabelResource()
JMeterGUIComponent
getLabelResource
in interface JMeterGUIComponent
getLabelResource
in class AbstractJMeterGuiComponent
public TestElement createTestElement()
JMeterGUIComponent
createTestElement
in interface JMeterGUIComponent
public void modifyTestElement(TestElement args)
JMeterGUIComponent
modifyTestElement
in interface JMeterGUIComponent
args
- the TestElement to modifypublic void configure(TestElement el)
configure
in interface JMeterGUIComponent
configure
in class AbstractJMeterGuiComponent
el
- the TestElement to configureprotected JTable getTable()
protected JLabel getTableLabel()
protected JButton getDeleteButton()
protected JButton getAddButton()
protected void checkDeleteStatus()
public void clear()
clear
in interface JMeterGUIComponent
clear
in class AbstractJMeterGuiComponent
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- the event that has occurredprotected void deleteArgument()
protected void addArgument()
protected Object makeNewArgument()
protected void stopTableEditing()
protected void initializeTableModel()
protected void sizeColumns(JTable table)
table
- the table to resize columns forprotected Component makeLabelPanel()
|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |