Examples of RTextScrollPane


Examples of org.fife.ui.rtextarea.RTextScrollPane

    protected JComponent buildUI() {
        JPanel panel = new JPanel(new BorderLayout());

        editor = SyntaxEditorUtil.createDefaultXmlSyntaxTextArea();

        RTextScrollPane scrollPane = new RTextScrollPane(editor);
        scrollPane.setFoldIndicatorEnabled(true);
        scrollPane.setLineNumbersEnabled(true);

        editor = SyntaxEditorUtil.addDefaultActions(editor, scrollPane, false);

        editor.setText(samlAssertion == null ? "" : samlAssertion);
        editor.getDocument().addDocumentListener(new DocumentListenerAdapter() {
View Full Code Here

Examples of org.fife.ui.rtextarea.RTextScrollPane

        MessageExchange me = messageExchangeModelItem.getMessageExchange();
        if (me != null) {
            setEditorContent(me);
        }

        RTextScrollPane scrollPane = new RTextScrollPane(contentEditor);
        scrollPane.setLineNumbersEnabled(true);
        scrollPane.setFoldIndicatorEnabled(true);
        contentPanel.add(scrollPane);
        contentEditor.setEditable(false);

        return contentPanel;
    }
View Full Code Here

Examples of org.fife.ui.rtextarea.RTextScrollPane

        HttpResponse response = httpRequest.getResponse();
        if (response != null) {
            setEditorContent(response);
        }

        RTextScrollPane scrollPane = new RTextScrollPane(contentEditor);
        scrollPane.setFoldIndicatorEnabled(true);
        scrollPane.setLineNumbersEnabled(true);
        contentPanel.add(scrollPane);
        contentEditor.setEditable(false);

        return contentPanel;
    }
View Full Code Here

Examples of org.fife.ui.rtextarea.RTextScrollPane

        RSyntaxTextArea responseArea = SyntaxEditorUtil.createDefaultXmlSyntaxTextArea();
        responseArea.setText(XmlUtils.prettyPrintXml(result.getResponseContent()));
        responseArea.setEditable(false);
        responseArea.setToolTipText("Response Content");
        responseArea.setFont(UISupport.getEditorFont());
        RTextScrollPane scrollPane = new RTextScrollPane(responseArea);
        scrollPane.setFoldIndicatorEnabled(true);
        scrollPane.setLineNumbersEnabled(true);

        JSplitPane split = UISupport.createVerticalSplit(new JScrollPane(JTableFactory.getInstance().makeJTable(new StringToStringsMapTableModel(
                result.getResponseHeaders(), "Header", "Value", false))), scrollPane);
        split.setDividerLocation(150);
        return split;
View Full Code Here

Examples of org.fife.ui.rtextarea.RTextScrollPane

        resultArea.setFont(UISupport.getEditorFont());
        resultArea.setText(XmlUtils.prettyPrintXml(result.getMockRequest().getRequestContent()));
        resultArea.setEditable(false);
        resultArea.setToolTipText("Request Content");

        RTextScrollPane scrollPane = new RTextScrollPane(resultArea);
        scrollPane.setFoldIndicatorEnabled(true);
        scrollPane.setLineNumbersEnabled(true);
        JSplitPane split = UISupport.createVerticalSplit(new JScrollPane(JTableFactory.getInstance().makeJTable(new StringToStringsMapTableModel(
                result.getMockRequest().getRequestHeaders(), "Header", "Value", false))), scrollPane);
        split.setDividerLocation(150);
        return split;
    }
View Full Code Here

Examples of org.fife.ui.rtextarea.RTextScrollPane

            inputArea.setText(xmlString);
            inputArea.setEditable(false);
            inputArea.setFont(UISupport.getEditorFont());

            JPanel p = new JPanel(new BorderLayout());
            RTextScrollPane scrollPane = new RTextScrollPane(inputArea);
            UISupport.addPreviewCorner(scrollPane, true);
            p.add(scrollPane, BorderLayout.CENTER);
            panel.add(p, BorderLayout.CENTER);
            partTabs.addTab(title, panel);
View Full Code Here

Examples of org.fife.ui.rtextarea.RTextScrollPane

            inputArea.setText(xmlString);
            inputArea.setEditable(false);

            JPanel p = new JPanel(new BorderLayout());
            RTextScrollPane scrollPane = new RTextScrollPane(inputArea);
            p.add(scrollPane, BorderLayout.CENTER);
            UISupport.addPreviewCorner(scrollPane, true);
            panel.add(scrollPane, BorderLayout.CENTER);
            partTabs.addTab(title, panel);
View Full Code Here

Examples of org.fife.ui.rtextarea.RTextScrollPane

        editArea.getDocument().addDocumentListener(groovyDocumentListener);

        settingsListener = new InternalSettingsListener();
        settings.addSettingsListener(settingsListener);

        scrollPane = new RTextScrollPane(editArea, true);
        scrollPane.setPreferredSize(new Dimension(500, 300));
        add(scrollPane);

        UISupport.addPreviewCorner(scrollPane, true);
View Full Code Here

Examples of org.fife.ui.rtextarea.RTextScrollPane

                }
            }
        });

        JPanel p = new JPanel(new BorderLayout());
        editorScrollPane = new RTextScrollPane(editArea);

        JTextComponentPopupMenu.add(editArea);

        buildPopup(editArea.getPopupMenu(), editArea);
View Full Code Here

Examples of org.fife.ui.rtextarea.RTextScrollPane

        return new JScrollPane(textArea);
    }

    public JComponent buildXmlEditor(EditorModel editorModel) {
        RSyntaxTextArea xmlEditor = SyntaxEditorUtil.createDefaultXmlSyntaxTextArea();
        RTextScrollPane scrollPane = new RTextScrollPane(xmlEditor);
        xmlEditor = SyntaxEditorUtil.addDefaultActions(xmlEditor, scrollPane, false);
        xmlEditor.setText(editorModel.getEditorText());
        xmlEditor.getDocument().addDocumentListener(new EditorModelDocumentListener(editorModel, xmlEditor));
        UISupport.addPreviewCorner(scrollPane, false);
        return scrollPane;
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.