/*************************************************************************** * This will create the Search controls panel in the LdapConfigGui **************************************************************************/ private JPanel createSCPanel() { VerticalPanel scPanel = new VerticalPanel(); scPanel.add(scope); scPanel.add(createLabelPanel("countlim", countlim)); scPanel.add(createLabelPanel("timelim", timelim)); scPanel.add(createLabelPanel("attrs", attribs)); scPanel.add(retobj); scPanel.add(deref); scPanel.add(parseflag); return scPanel; }
protected JPanel createAssertionsPanel(){ VerticalPanel panel = new VerticalPanel(); panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),"Assertions")); panel.add(createAssertionClassDropDown()); return panel; }
@Override protected JPanel createBrowserPanel() { return new VerticalPanel(); }
public void init() { setLayout(new BorderLayout()); setBorder(makeBorder()); add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH); VerticalPanel panel = new VerticalPanel(); panel.setBorder(BorderFactory.createEtchedBorder()); add(panel, BorderLayout.CENTER); }
public VerticalPanel(int vgap, float horizontalAlign) { super(new BorderLayout()); add(subPanel, BorderLayout.NORTH); this.vgap = vgap; this.horizontalAlign = horizontalAlign; }
private JPanel createServicePanel() { final JPanel browserPanel = new VerticalPanel(); final JPanel ieServicePanel = new HorizontalPanel(); final JLabel ieDriverServiceLabel = new JLabel("Path to Internet Explorer Driver"); ieServicePanel.add(ieDriverServiceLabel); ieServicePath = new JTextField(); ieServicePanel.add(ieServicePath); browserPanel.add(ieServicePanel); return browserPanel; }
public void init() { setLayout(new BorderLayout()); setBorder(makeBorder()); add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH); VerticalPanel panel = new VerticalPanel(); panel.setBorder(BorderFactory.createEtchedBorder()); add(panel, BorderLayout.CENTER); }
/** * This will create the Delete panel in the LdapConfigGui. */ private JPanel createDeletePanel() { VerticalPanel panel = new VerticalPanel(); panel.add(createLabelPanel("delete", delete)); return panel; }
private JPanel createNoProxyPanel() { JPanel noProxyPanel = new VerticalPanel(); JLabel noProxyListLabel = new JLabel("No Proxy for:"); noProxyPanel.add(noProxyListLabel); noProxyList = new JTextArea(3, 10); noProxyList.setText(DEFAULT_NO_PROXY_LIST); noProxyList.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY)); noProxyList.setEnabled(false); noProxyPanel.add(noProxyList); JLabel noProxyExample = new JLabel("Example: .jmeter.org, .com.au, 192.168.1.0/24"); noProxyPanel.add(noProxyExample); return noProxyPanel; }
/** * Create a standard title section for JMeter components. This includes the * title for the component and the Name Panel allowing the user to change * the name for the component. This method is typically added to the top of * the component at the beginning of the component's init method. * * @return a panel containing the component title and name panel */ protected Container makeTitlePanel() { VerticalPanel titlePanel = new VerticalPanel(); titlePanel.add(createTitleLabel()); VerticalPanel contentPanel = new VerticalPanel(); contentPanel.setBorder(BorderFactory.createEtchedBorder()); contentPanel.add(getNamePanel()); contentPanel.add(getCommentPanel()); titlePanel.add(contentPanel); return titlePanel; }
/*************************************************************************** * This will create the Delete panel in the LdapConfigGui **************************************************************************/ private JPanel createDeletePanel() { VerticalPanel panel = new VerticalPanel(); panel.add(createLabelPanel("delete", delete)); return panel; }
private JPanel getTriggerTypePanel() { final JPanel triggerOuterPanel = new VerticalPanel(50, 0.0F); triggerOuterPanel.setBorder( BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Commands triggered by")); final JPanel triggerPanel = new JPanel(new BorderLayout(10, 50)); setDescriptionTextAreaDesign(triggerTypeDescription, triggerPanel); triggerPanel.add(triggerType, BorderLayout.LINE_START); triggerPanel.add(triggerTypeDescription, BorderLayout.CENTER); triggerType.addActionListener(e -> triggerTypeDescription.setText(getDescriptionTextForSelectedTrigger())); triggerOuterPanel.add(triggerPanel); return triggerOuterPanel; }
public void init() { setLayout(new BorderLayout()); setBorder(makeBorder()); add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH); VerticalPanel panel = new VerticalPanel(); panel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 0)); jsonPath = new JLabeledTextField("JSON Path: "); jsonValidation = new JCheckBox("Validate against expected value"); jsonValue = new JLabeledTextArea("Expected Value (regular expression): "); expectNull = new JCheckBox("Expect null"); invert = new JCheckBox("Invert assertion (will fail if above conditions met)"); jsonValidation.addChangeListener(this); expectNull.addChangeListener(this); panel.add(jsonPath); panel.add(jsonValidation); panel.add(jsonValue); panel.add(expectNull); panel.add(invert); add(panel, BorderLayout.CENTER); }
private JPanel getRequestPanel() { body = new JLabeledTextArea("Body"); headers = new JLabeledTextArea("Headers"); VerticalPanel panel = new VerticalPanel(); panel.add(headers, BorderLayout.NORTH); panel.add(body, BorderLayout.CENTER); return panel; }
protected JPanel createOptionalTasksPanel() { // OPTIONAL TASKS final JPanel checkBoxPanel = new VerticalPanel(); checkBoxPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils .getResString("optional_tasks"))); // $NON-NLS-1$ // Use MD5 useMD5 = new JCheckBox(JMeterUtils.getResString("response_save_as_md5")); // $NON-NLS-1$ checkBoxPanel.add(useMD5); return checkBoxPanel; }
private void init() { setLayout(new BorderLayout()); setBorder(makeBorder()); add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH); VerticalPanel panel = new VerticalPanel(); panel.setBorder(BorderFactory.createEtchedBorder()); panel.add(getResourceConfigPanel(), BorderLayout.NORTH); panel.add(getRequestPanel(), BorderLayout.CENTER); add(panel, BorderLayout.CENTER); }
private JPanel getRequestPanel() { body = new JLabeledTextArea("Body"); headers = new JLabeledTextArea("Headers"); VerticalPanel panel = new VerticalPanel(); panel.add(headers, BorderLayout.NORTH); panel.add(body, BorderLayout.CENTER); return panel; }
protected JPanel createOptionalTasksPanel() { // OPTIONAL TASKS final JPanel checkBoxPanel = new VerticalPanel(); checkBoxPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils .getResString("optional_tasks"))); // $NON-NLS-1$ // Use MD5 useMD5 = new JCheckBox(JMeterUtils.getResString("response_save_as_md5")); // $NON-NLS-1$ checkBoxPanel.add(useMD5); return checkBoxPanel; }
private void init() { setLayout(new BorderLayout()); setBorder(makeBorder()); add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH); VerticalPanel panel = new VerticalPanel(); panel.setBorder(BorderFactory.createEtchedBorder()); panel.add(getResourceConfigPanel(), BorderLayout.NORTH); panel.add(getRequestPanel(), BorderLayout.CENTER); add(panel, BorderLayout.CENTER); }
/** * This will create the Search panel in the LdapConfigGui. */ private JPanel createSearchPanel() { VerticalPanel searchPanel = new VerticalPanel(); searchPanel.add(createLabelPanel("search_base", searchbase)); searchPanel.add(createLabelPanel("search_filter", searchfilter)); return searchPanel; }