|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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
public class 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 |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static String |
COLUMN_RESOURCE_NAMES_0
|
static String |
COLUMN_RESOURCE_NAMES_1
|
static String |
COLUMN_RESOURCE_NAMES_2
|
protected ObjectTableModel |
tableModel
The model for the arguments table. |
Fields inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent |
---|
namePanel |
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. |
|
ArgumentsPanel(String label,
boolean enableUpDown)
Create a new ArgumentsPanel as an embedded component, using the specified title. |
|
ArgumentsPanel(String label,
Color bkg)
Create a new ArgumentsPanel with a border and color background |
|
ArgumentsPanel(String label,
Color bkg,
boolean enableUpDown,
boolean standalone)
Create a new ArgumentsPanel with a border and color background |
|
ArgumentsPanel(String label,
Color bkg,
boolean enableUpDown,
boolean standalone,
ObjectTableModel model)
Create a new ArgumentsPanel with a border and color background |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
Invoked when an action occurs. |
protected void |
addArgument()
Add a new argument row to the table. |
protected void |
addFromClipboard()
Add values from the clipboard |
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 |
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)
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<String> |
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 Argument |
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. |
static boolean |
testFunctors()
|
Methods inherited from class org.apache.jmeter.config.gui.AbstractConfigGui |
---|
createPopupMenu |
Methods inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent |
---|
configureTestElement, createTitleLabel, getComment, getDocAnchor, getName, getNamePanel, getPrintableComponent, getStaticLabel, isEnabled, makeBorder, makeScrollPane, makeScrollPane, makeTitlePanel, setComment, setEnabled, setName |
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_RESOURCE_NAMES_0
public static final String COLUMN_RESOURCE_NAMES_1
public static final String COLUMN_RESOURCE_NAMES_2
Constructor Detail |
---|
public ArgumentsPanel()
public ArgumentsPanel(String label)
label
- the title for the component.public ArgumentsPanel(String label, boolean enableUpDown)
label
- the title for the component.enableUpDown
- Add up/down buttonspublic ArgumentsPanel(String label, Color bkg)
label
- text for labelbkg
- background colourpublic ArgumentsPanel(String label, Color bkg, boolean enableUpDown, boolean standalone)
label
- text for labelbkg
- background colourenableUpDown
- Add up/down buttonsstandalone
- is standalonepublic ArgumentsPanel(String label, Color bkg, boolean enableUpDown, boolean standalone, ObjectTableModel model)
label
- text for labelbkg
- background colourenableUpDown
- Add up/down buttonsstandalone
- is standalonemodel
- the table model to useMethod Detail |
---|
public Collection<String> getMenuCategories()
getMenuCategories
in interface JMeterGUIComponent
getMenuCategories
in class AbstractConfigGui
MenuFactory
public String getLabelResource()
JMeterGUIComponent
getLabelResource
in interface JMeterGUIComponent
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 clearGui()
AbstractJMeterGuiComponent
clearGui
in interface JMeterGUIComponent
clearGui
in class AbstractJMeterGuiComponent
public void clear()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- the event that has occurredprotected void deleteArgument()
protected void addArgument()
protected void addFromClipboard()
protected Argument makeNewArgument()
protected void stopTableEditing()
protected void initializeTableModel()
public static boolean testFunctors()
protected void sizeColumns(JTable _table)
_table
- the table to resize columns forprotected Component makeLabelPanel()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |