Examples of JSyntaxTextArea


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

        return checkXPath;
    }

    public JSyntaxTextArea getXPathField() {
        if (xpath == null) {
            xpath = new JSyntaxTextArea(20, 80);
            xpath.setLanguage("xpath"); //$NON-NLS-1$
        }
        return xpath;
    }
View Full Code Here

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

        // Don't let the input field shrink too much
        add(Box.createVerticalStrut(panel.getPreferredSize().height), BorderLayout.WEST);
    }

    private JPanel createScriptPanel() {
        scriptField = new JSyntaxTextArea(20, 20);

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

        JPanel panel = new JPanel(new BorderLayout());
View Full Code Here

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

        // Don't let the input field shrink too much
        add(Box.createVerticalStrut(panel.getPreferredSize().height), BorderLayout.WEST);
    }

    private JPanel createScriptPanel() {
        scriptField = new JSyntaxTextArea(20,20);

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

        JPanel panel = new JPanel(new BorderLayout());
View Full Code Here

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

        return eolBytePanel;
    }

    private JPanel createRequestPanel() {
        JLabel reqLabel = new JLabel(JMeterUtils.getResString("tcp_request_data")); // $NON-NLS-1$
        requestData = new JSyntaxTextArea(15, 80);
        requestData.setLanguage("text"); //$NON-NLS-1$
        reqLabel.setLabelFor(requestData);

        JPanel reqDataPanel = new JPanel(new BorderLayout(5, 0));
        reqDataPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder()));
View Full Code Here

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

        JPanel namePane = new JPanel(new BorderLayout());
        namePane.add(nameLabel, BorderLayout.WEST);
        namePane.add(nameTF, BorderLayout.CENTER);

        valueLabel = new JLabel(JMeterUtils.getResString("value")); //$NON-NLS-1$
        valueTA = new JSyntaxTextArea(30, 80);
        valueTA.getDocument().addDocumentListener(this);
        setValues(selectedRow);
        JPanel valuePane = new JPanel(new BorderLayout());
        valuePane.add(valueLabel, BorderLayout.NORTH);
        JTextScrollPane jTextScrollPane = new JTextScrollPane(valueTA);
View Full Code Here

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

    protected JTabbedPane getParameterPanel() {
        postContentTabbedPane = new ValidationTabbedPane();
        argsPanel = new HTTPArgumentsPanel();
        postContentTabbedPane.add(JMeterUtils.getResString("post_as_parameters"), argsPanel);// $NON-NLS-1$
        if(showRawBodyPane) {
            postBodyContent = new JSyntaxTextArea(30, 50);// $NON-NLS-1$
            postContentTabbedPane.add(JMeterUtils.getResString("post_body"), new JTextScrollPane(postBodyContent));// $NON-NLS-1$
        }
        return postContentTabbedPane;
    }
View Full Code Here

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

    private void init() {
        this.setLayout(new BorderLayout());

        // TEXTAREA
        textArea = new JSyntaxTextArea(15, 50, true);
        textArea.setEditable(false);
        textArea.setLineWrap(false);
        textArea.setLanguage("text");
        textArea.setMargin(new Insets(2, 2, 2, 2)); // space between borders and text
        JScrollPane areaScrollPane = new JTextScrollPane(textArea);
View Full Code Here

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

    /**
     *
     */
    public TextAreaEditor() {
        super();
        textUI = new JSyntaxTextArea(20, 20);
        scroller = new JTextScrollPane(textUI, true);
        init();
    }
View Full Code Here

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

     * @param source
     */
    // TODO is this ever used?
    public TextAreaEditor(Object source) {
        super(source);
        textUI = new JSyntaxTextArea(20, 20);
        scroller = new JTextScrollPane(textUI, true);
        init();
        setValue(source);
    }
View Full Code Here

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

    /**
     * @param descriptor
     */
    public TextAreaEditor(PropertyDescriptor descriptor) {
        textUI = new JSyntaxTextArea(20, 20);
        textUI.setLanguage((String) descriptor.getValue(GenericTestBeanCustomizer.TEXT_LANGUAGE));
        scroller = new JTextScrollPane(textUI, true);
        init();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.