org.apache.jmeter.protocol.ldap.config.gui

Class LDAPArgumentsPanel

Implemented Interfaces:
ActionListener, JMeterGUIComponent, Printable

public class LDAPArgumentsPanel
extends AbstractConfigGui
implements ActionListener

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.

Field Summary

protected ObjectTableModel
tableModel
The model for the arguments table.

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

namePanel

Constructor Summary

LDAPArgumentsPanel()
Create a new LDAPArgumentsPanel, using the default title.
LDAPArgumentsPanel(String label)
Create a new LDAPArgumentsPanel, 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()
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()
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
makeNewLDAPArgument()
Create a new LDAPArgument object.
void
modifyTestElement(TestElement args)
protected void
sizeColumns(JTable _table)
Resize the table columns to appropriate widths.
static boolean
testFunctors()

Methods inherited from class org.apache.jmeter.config.gui.AbstractConfigGui

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

tableModel

protected ObjectTableModel tableModel
The model for the arguments table.

Constructor Details

LDAPArgumentsPanel

public LDAPArgumentsPanel()
Create a new LDAPArgumentsPanel, using the default title.

LDAPArgumentsPanel

public LDAPArgumentsPanel(String label)
Create a new LDAPArgumentsPanel, using the specified title.
Parameters:
label - the title of the component

Method Details

actionPerformed

public void actionPerformed(ActionEvent e)
Invoked when an action occurs. This implementation supports the add and delete buttons.
Parameters:
e - the event that has occurred

addArgument

protected void addArgument()
Add a new argument row to the table.

checkDeleteStatus

protected void checkDeleteStatus()
Enable or disable the delete button depending on whether or not there is a row to be deleted.

clear

public void clear()
Clear all rows from the table. T.Elanjchezhiyan(chezhiyan@siptech.co.in)

configure

public void configure(TestElement el)
A newly created component can be initialized with the contents of a Test Element object by calling this method. The component is responsible for querying the Test Element object for the relevant information to display in its GUI.
Specified by:
configure in interface JMeterGUIComponent
Overrides:
configure in interface AbstractJMeterGuiComponent
Parameters:
el - the TestElement to configure

createTestElement

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

deleteArgument

protected void deleteArgument()
Remove the currently selected argument from the table.

getAddButton

protected JButton getAddButton()
Get the button used to add rows to the table.
Returns:
the button used to add rows to the table

getDeleteButton

protected JButton getDeleteButton()
Get the button used to delete rows from the table.
Returns:
the button used to delete rows from the table

getLabelResource

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

getMenuCategories

public Collection getMenuCategories()
This is the list of menu categories this gui component will be available under. The LDAPArgumentsPanel is not intended to be used as a standalone component, so this inplementation returns null.
Specified by:
getMenuCategories in interface JMeterGUIComponent
Overrides:
getMenuCategories in interface AbstractConfigGui
Returns:
a Collection of Strings, where each element is one of the constants defined in MenuFactory

getTable

protected JTable getTable()
Get the table used to enter arguments.
Returns:
the table used to enter arguments

getTableLabel

protected JLabel getTableLabel()
Get the title label for this component.
Returns:
the title label displayed with the table

initializeTableModel

protected void initializeTableModel()
Initialize the table model used for the arguments table.

makeLabelPanel

protected Component makeLabelPanel()
Create a panel containing the title label for the table.
Returns:
a panel containing the title label

makeNewLDAPArgument

protected Object makeNewLDAPArgument()
Create a new LDAPArgument object.
Returns:
a new LDAPArgument object

modifyTestElement

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

sizeColumns

protected void sizeColumns(JTable _table)
Resize the table columns to appropriate widths.
Parameters:
_table - the table to resize columns for

testFunctors

public static boolean testFunctors()

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