Search in sources :

Example 1 with VerticalPanel

use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter-plugins by undera.

the class JSONFormatterGui method init.

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);
}
Also used : VerticalPanel(org.apache.jmeter.gui.util.VerticalPanel) BorderLayout(java.awt.BorderLayout)

Example 2 with VerticalPanel

use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter-plugins by undera.

the class MergeResultsGui method init.

private void init() {
    this.setLayout(new BorderLayout());
    // MAIN PANEL
    JPanel mainPanel = new JPanel();
    Border margin = new EmptyBorder(10, 10, 5, 10);
    mainPanel.setBorder(margin);
    mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
    mainPanel.add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE));
    JPanel containerPanel = new VerticalPanel();
    JButton saveConfigButton = new JButton(JMeterUtils.getResString("config_save_settings"));
    saveConfigButton.addActionListener(this);
    saveConfigButton.setActionCommand(ACTION_SAVE_CONFIG);
    mergeAndWritePanel = new FilePanel("Merge and write results to output file", EXTS);
    mergeAndWritePanel.addChangeListener(this);
    mergeAndWritePanel.add(saveConfigButton);
    mergeButton = new JButton("Merge");
    mergeButton.addActionListener(this);
    mergeButton.setActionCommand(ACTION_MERGE);
    JPanel controlPanel = new JPanel();
    controlPanel.add(mergeButton);
    containerPanel.add(createParamsPanel());
    containerPanel.add(getMergeAndWritePanel());
    containerPanel.add(controlPanel);
    add(mainPanel, BorderLayout.NORTH);
    add(containerPanel, BorderLayout.CENTER);
    hideFilePanel();
    enableMaximize(false);
}
Also used : JPanel(javax.swing.JPanel) VerticalPanel(org.apache.jmeter.gui.util.VerticalPanel) BorderLayout(java.awt.BorderLayout) BoxLayout(javax.swing.BoxLayout) JButton(javax.swing.JButton) FilePanel(org.apache.jmeter.gui.util.FilePanel) EmptyBorder(javax.swing.border.EmptyBorder) Border(javax.swing.border.Border) EmptyBorder(javax.swing.border.EmptyBorder)

Example 3 with VerticalPanel

use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter-plugins by undera.

the class XMLFormatPostProcessorGui method init.

private void init() {
    setBorder(makeBorder());
    setLayout(new BorderLayout());
    JPanel vertPanel = new VerticalPanel();
    vertPanel.add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH);
    add(vertPanel, BorderLayout.NORTH);
}
Also used : JPanel(javax.swing.JPanel) VerticalPanel(org.apache.jmeter.gui.util.VerticalPanel) BorderLayout(java.awt.BorderLayout)

Example 4 with VerticalPanel

use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter-plugins by undera.

the class OAuthSamplerGui method getResourceConfigPanel.

private JPanel getResourceConfigPanel() {
    consumerKey = new JLabeledTextField("Consumer Key", 25);
    consumerSecret = new JLabeledTextField("Consumer Secret", 25);
    automaticRedirect = new JCheckBox(JMeterUtils.getResString("follow_redirects"));
    httpMethods = new JLabeledChoice("Method", new String[] { "GET", "POST", "PUT", "DELETE", "PATCH" });
    httpMethods.addChangeListener(new ChangeListener() {

        @Override
        public void stateChanged(ChangeEvent e) {
            JLabeledChoice c = (JLabeledChoice) e.getSource();
            String text = c.getText();
            if ("PUT".equals(text) || "POST".equals(text) || "PATCH".equals(text)) {
                automaticRedirect.setSelected(false);
                automaticRedirect.setEnabled(false);
            } else {
                automaticRedirect.setEnabled(true);
            }
        }
    });
    useKeepAlive = new JCheckBox(JMeterUtils.getResString("use_keepalive"));
    hostBaseUrl = new JLabeledTextField("Base Url", 25);
    resource = new JLabeledTextField("Resource", 20);
    port = new JLabeledTextField("Port", 10);
    VerticalPanel resourceConfigPanel = new VerticalPanel();
    HorizontalPanel oAuthPanel = new HorizontalPanel();
    oAuthPanel.add(consumerKey);
    oAuthPanel.add(consumerSecret);
    HorizontalPanel panel1 = new HorizontalPanel();
    panel1.add(httpMethods);
    panel1.add(useKeepAlive);
    panel1.add(automaticRedirect);
    HorizontalPanel panel2 = new HorizontalPanel();
    panel2.add(hostBaseUrl);
    panel2.add(port);
    HorizontalPanel panel3 = new HorizontalPanel();
    panel3.add(resource);
    resourceConfigPanel.add(panel1);
    resourceConfigPanel.add(oAuthPanel);
    resourceConfigPanel.add(panel2);
    resourceConfigPanel.add(panel3);
    return resourceConfigPanel;
}
Also used : JCheckBox(javax.swing.JCheckBox) JLabeledTextField(org.apache.jorphan.gui.JLabeledTextField) VerticalPanel(org.apache.jmeter.gui.util.VerticalPanel) JLabeledChoice(org.apache.jorphan.gui.JLabeledChoice) ChangeEvent(javax.swing.event.ChangeEvent) HorizontalPanel(org.apache.jmeter.gui.util.HorizontalPanel) ChangeListener(javax.swing.event.ChangeListener)

Example 5 with VerticalPanel

use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter-plugins by undera.

the class OAuthSamplerGui method init.

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);
}
Also used : VerticalPanel(org.apache.jmeter.gui.util.VerticalPanel) BorderLayout(java.awt.BorderLayout)

Aggregations

VerticalPanel (org.apache.jmeter.gui.util.VerticalPanel)59 BorderLayout (java.awt.BorderLayout)33 JPanel (javax.swing.JPanel)27 JCheckBox (javax.swing.JCheckBox)14 JLabel (javax.swing.JLabel)12 HorizontalPanel (org.apache.jmeter.gui.util.HorizontalPanel)12 JTextField (javax.swing.JTextField)11 JLabeledTextField (org.apache.jorphan.gui.JLabeledTextField)7 Dimension (java.awt.Dimension)5 JButton (javax.swing.JButton)5 BoxLayout (javax.swing.BoxLayout)4 JTabbedPane (javax.swing.JTabbedPane)4 Border (javax.swing.border.Border)4 EmptyBorder (javax.swing.border.EmptyBorder)4 LoginConfigGui (org.apache.jmeter.config.gui.LoginConfigGui)4 FilePanel (org.apache.jmeter.gui.util.FilePanel)4 ArrayList (java.util.ArrayList)3 Box (javax.swing.Box)3 ButtonGroup (javax.swing.ButtonGroup)3 JComboBox (javax.swing.JComboBox)3