Search in sources :

Example 1 with UrlConfigGui

use of org.apache.jmeter.protocol.http.config.gui.UrlConfigGui in project jmeter by apache.

the class HttpTestSampleGui method init.

private void init() {
    // called from ctor, so must not be overridable
    setLayout(new BorderLayout(0, 5));
    setBorder(makeBorder());
    // URL CONFIG
    urlConfigGui = new UrlConfigGui(true, true, true);
    // HTTP request options
    JPanel httpOptions = new HorizontalPanel();
    httpOptions.add(getImplementationPanel());
    httpOptions.add(getTimeOutPanel());
    // AdvancedPanel (embedded resources, source address and optional tasks)
    JPanel advancedPanel = new VerticalPanel();
    if (!isAJP) {
        advancedPanel.add(httpOptions);
    }
    advancedPanel.add(createEmbeddedRsrcPanel());
    if (!isAJP) {
        advancedPanel.add(createSourceAddrPanel());
        advancedPanel.add(getProxyServerPanel());
    }
    advancedPanel.add(createOptionalTasksPanel());
    JTabbedPane tabbedPane = new JTabbedPane();
    tabbedPane.add(JMeterUtils.getResString("web_testing_basic"), urlConfigGui);
    tabbedPane.add(JMeterUtils.getResString("web_testing_advanced"), advancedPanel);
    JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, makeTitlePanel(), tabbedPane);
    splitPane.setOneTouchExpandable(true);
    add(splitPane);
}
Also used : JPanel(javax.swing.JPanel) VerticalPanel(org.apache.jmeter.gui.util.VerticalPanel) BorderLayout(java.awt.BorderLayout) UrlConfigGui(org.apache.jmeter.protocol.http.config.gui.UrlConfigGui) JTabbedPane(javax.swing.JTabbedPane) HorizontalPanel(org.apache.jmeter.gui.util.HorizontalPanel) JSplitPane(javax.swing.JSplitPane)

Aggregations

BorderLayout (java.awt.BorderLayout)1 JPanel (javax.swing.JPanel)1 JSplitPane (javax.swing.JSplitPane)1 JTabbedPane (javax.swing.JTabbedPane)1 HorizontalPanel (org.apache.jmeter.gui.util.HorizontalPanel)1 VerticalPanel (org.apache.jmeter.gui.util.VerticalPanel)1 UrlConfigGui (org.apache.jmeter.protocol.http.config.gui.UrlConfigGui)1