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);
}
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);
}
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);
}
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;
}
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);
}
Aggregations