org.apache.jmeter.protocol.ldap.config.gui
Class LDAPArgumentsPanel
- ActionListener, JMeterGUIComponent, Printable
public class LDAPArgumentsPanel
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.
clearGui , configure , configureTestElement , createTitleLabel , getComment , getDocAnchor , getName , getNamePanel , getNode , getPrintableComponent , getStaticLabel , isEnabled , makeBorder , makeScrollPane , makeScrollPane , makeTitlePanel , setComment , setEnabled , setName , setNode |
tableModel
protected ObjectTableModel tableModel
The model for the arguments table.
LDAPArgumentsPanel
public LDAPArgumentsPanel()
Create a new LDAPArgumentsPanel, using the default title.
LDAPArgumentsPanel
public LDAPArgumentsPanel(String label)
Create a new LDAPArgumentsPanel, using the specified title.
label
- the title of the component
actionPerformed
public void actionPerformed(ActionEvent e)
Invoked when an action occurs. This implementation supports the add and
delete buttons.
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.
- configure in interface JMeterGUIComponent
- configure in interface AbstractJMeterGuiComponent
el
- the TestElement to configure
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.
- the button used to add rows to the table
getDeleteButton
protected JButton getDeleteButton()
Get the button used to delete rows from the table.
- the button used to delete rows from the table
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.
- getMenuCategories in interface JMeterGUIComponent
- getMenuCategories in interface AbstractConfigGui
- 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.
- the table used to enter arguments
getTableLabel
protected JLabel getTableLabel()
Get the title label for this component.
- 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.
- a panel containing the title label
makeNewLDAPArgument
protected Object makeNewLDAPArgument()
Create a new LDAPArgument object.
- a new LDAPArgument object
sizeColumns
protected void sizeColumns(JTable _table)
Resize the table columns to appropriate widths.
_table
- the table to resize columns for
testFunctors
public static boolean testFunctors()
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.