Package org.apache.jmeter.gui.util

Examples of org.apache.jmeter.gui.util.HorizontalPanel


    VerticalPanel mainPanel = new VerticalPanel();
    mainPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
        JMeterUtils.getResString("proxy_test_plan_content"))); // $NON-NLS-1$

    HorizontalPanel nodeCreationPanel = new HorizontalPanel();
    nodeCreationPanel.add(httpHeaders);
    nodeCreationPanel.add(addAssertions);
    nodeCreationPanel.add(regexMatch);
   
        HorizontalPanel targetPanel = new HorizontalPanel();
        targetPanel.add(createTargetPanel());
        targetPanel.add(createGroupingPanel());
        mainPanel.add(targetPanel);
    mainPanel.add(nodeCreationPanel);

    return mainPanel;
  }
View Full Code Here


    samplerDownloadImages = new JCheckBox(JMeterUtils.getResString("web_testing_retrieve_images")); // $NON-NLS-1$
    samplerDownloadImages.setSelected(false);
    samplerDownloadImages.addActionListener(this);
    samplerDownloadImages.setActionCommand(ENABLE_RESTART);
   
    HorizontalPanel panel = new HorizontalPanel();
    panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
        JMeterUtils.getResString("proxy_sampler_settings"))); // $NON-NLS-1$
    panel.add(label2);
    panel.add(samplerTypeName);
    panel.add(samplerRedirectAutomatically);
    panel.add(samplerFollowRedirects);
    panel.add(useKeepAlive);
    panel.add(samplerDownloadImages);

    return panel;
  }
View Full Code Here

    // Action listener will be added later

    JLabel label = new JLabel(JMeterUtils.getResString("proxy_target")); // $NON-NLS-1$
    label.setLabelFor(targetNodes);

    HorizontalPanel panel = new HorizontalPanel();
    panel.add(label);
    panel.add(targetNodes);

    /*
     * This listener subscription prevents freeing up the GUI when it's no
     * longer in use (e.g. on locale change)... plus causes some anoying
     * NPEs in the GUI instance created by the menu manager just to find out
View Full Code Here

    groupingMode.addItemListener(this);

    JLabel label2 = new JLabel(JMeterUtils.getResString("grouping_mode")); // $NON-NLS-1$
    label2.setLabelFor(groupingMode);

    HorizontalPanel panel = new HorizontalPanel();
    panel.add(label2);
    panel.add(groupingMode);

    return panel;
  }
View Full Code Here

    JLabel labelExclude = new JLabel(JMeterUtils.getResString("proxy_content_type_exclude")); // $NON-NLS-1$
    labelExclude.setLabelFor(contentTypeExclude);
    // Default value
    contentTypeExclude.setText(JMeterUtils.getProperty("proxy.content_type_exclude")); // $NON-NLS-1$
   
    HorizontalPanel panel = new HorizontalPanel();
    panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
        JMeterUtils.getResString("proxy_content_type_filter"))); // $NON-NLS-1$
    panel.add(labelInclude);
    panel.add(contentTypeInclude);
    panel.add(labelExclude);
    panel.add(contentTypeExclude);
   
    return panel;
  }
View Full Code Here

    panel.add(field, BorderLayout.CENTER);
    return panel;
  }

  private JPanel getParameterMaskPanel() {
    HorizontalPanel panel = new HorizontalPanel(10, HorizontalPanel.TOP_ALIGNMENT);
    panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
        JMeterUtils.getResString("html_parameter_mask"))); //$NON-NLS-1$

    _fieldName = new JTextField(10);
    _fieldName.setName(NAME);
    panel.add(createLabeledField("name", _fieldName)); //$NON-NLS-1$ resource name

    _prefix = new JTextField(5);
    _prefix.setName(PREFIX);
    panel.add(createLabeledField("id_prefix", _prefix)); //$NON-NLS-1$ resource name

    _lowerBound = new JTextField(ZERO, 5);
    _lowerBound.addFocusListener(this);
    _lowerBound.setName(LOWERBOUND);
    panel.add(createLabeledField("lower_bound", _lowerBound)); //$NON-NLS-1$ resource name

    _upperBound = new JTextField("10", 5);
    _upperBound.addFocusListener(this);
    _upperBound.setName(UPPERBOUND);
    panel.add(createLabeledField("upper_bound", _upperBound)); //$NON-NLS-1$ resource name

    _increment = new JTextField("1", 3);
    _increment.addFocusListener(this);
    _increment.setName(INCREMENT);
    panel.add(createLabeledField("increment", _increment)); //$NON-NLS-1$ resource name

    _suffix = new JTextField(5);
    _suffix.setName(SUFFIX);
    panel.add(createLabeledField("id_suffix", _suffix)); //$NON-NLS-1$ resource name

    JPanel mainPanel = new JPanel(new BorderLayout());
    mainPanel.add(panel, BorderLayout.NORTH);
    return mainPanel;
  }
View Full Code Here

    binaryMode = new JCheckBox(JMeterUtils.getResString("ftp_binary_mode")); //$NON-NLS-1$
    saveResponseData = new JCheckBox(JMeterUtils.getResString("ftp_save_response_data")); //$NON-NLS-1$
   
   
    JPanel optionsPanel = new HorizontalPanel();
    optionsPanel.add(getBox);
    optionsPanel.add(putBox);
    optionsPanel.add(binaryMode);
    optionsPanel.add(saveResponseData);
    return optionsPanel;   
  }
View Full Code Here

        JPanel gPane = new JPanel(new BorderLayout());
        gPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
                JMeterUtils.getResString("proxy_general_settings"))); // $NON-NLS-1$

        HorizontalPanel panel = new HorizontalPanel();
        panel.add(label);
        panel.add(portField);
        panel.add(Box.createHorizontalStrut(10));

        gPane.add(panel, BorderLayout.WEST);

        sslDomains = new JLabeledTextField(JMeterUtils.getResString("proxy_domains")); // $NON-NLS-1$
        sslDomains.setEnabled(ProxyControl.isDynamicMode());
View Full Code Here

        VerticalPanel mainPanel = new VerticalPanel();
        mainPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
                JMeterUtils.getResString("proxy_test_plan_content"))); // $NON-NLS-1$

        HorizontalPanel nodeCreationPanel = new HorizontalPanel();
        nodeCreationPanel.add(createGroupingPanel());
        nodeCreationPanel.add(httpHeaders);
        nodeCreationPanel.add(addAssertions);
        nodeCreationPanel.add(regexMatch);

        HorizontalPanel targetPanel = new HorizontalPanel();
        targetPanel.add(createTargetPanel());
        mainPanel.add(targetPanel);
        mainPanel.add(nodeCreationPanel);

        return mainPanel;
    }
View Full Code Here

        samplerDownloadImages = new JCheckBox(JMeterUtils.getResString("web_testing_retrieve_images")); // $NON-NLS-1$
        samplerDownloadImages.setSelected(false);
        samplerDownloadImages.addActionListener(this);
        samplerDownloadImages.setActionCommand(ENABLE_RESTART);

        HorizontalPanel panel = new HorizontalPanel();
        panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
                JMeterUtils.getResString("proxy_sampler_settings"))); // $NON-NLS-1$
        panel.add(label2);
        panel.add(samplerTypeName);
        panel.add(samplerRedirectAutomatically);
        panel.add(samplerFollowRedirects);
        panel.add(useKeepAlive);
        panel.add(samplerDownloadImages);

        return panel;
    }
View Full Code Here

TOP

Related Classes of org.apache.jmeter.gui.util.HorizontalPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.