Package org.jitterbit.ui.widget.text

Examples of org.jitterbit.ui.widget.text.KongaTextPane


    private final KongaTextPane textArea;

    private final StatusPanel statusPanel;

    public FilterExpressionArea(LdapStructureEntryNode entryNode) {
        textArea = new KongaTextPane("").disableTabs();
        // Cannot set the default expression when we create the textArea above, because it
        // will be overwritten when we set the new document:
        installSyntaxHighlighting(entryNode);
        defaultFilter = SearchParamUtils.getDefaultFilter(entryNode);
        textArea.setText(defaultFilter);
View Full Code Here


    private final KongaTextPane textPane;

    private final FindInMessageSupport findSupport;

    public StyledTextLogMessageDisplayer() {
        textPane = new KongaTextPane();
        textPane.setEditable(false);
        StyledDocument doc = textPane.getStyledDocument();
        StyleDefiner.addStylesToDocument(doc);
        findSupport = new FindInMessageSupport(textPane);
    }
View Full Code Here

        new Thread() {

            @Override
            public void run() {
                if (textArea == null) {
                    textArea = new KongaTextPane();
                    XmlTextViewer viewer = new XmlTextViewer(textArea);
                    viewer.view(xmlFile.getFileObject());
                    textArea.setEditable(false);
                    copyAction = new CopyAction(textArea);
                }
View Full Code Here

        undoSender = new UndoableTextEditSender(textPane);
        undoSender.addUndoableEditListener(editor);
    }

    private void createComponents() {
        KongaTextPane text = createTextComponent();
        textPane = text;
        textMarker = new TextMarker(textPane);
    }
View Full Code Here

        textPane = text;
        textMarker = new TextMarker(textPane);
    }

    private static KongaTextPane createTextComponent() {
        KongaTextPane text = new KongaTextPane();
        text.setCaret(new ShowSelectionWhenNotFocusedCaret());
        text.setEditable(false);
        text.setMargin(new Insets(2, 4, 2, 4));
        text.setBorder(new BorderBuilder().line(new Color(25, 25, 25)).empty(2));
        return text;
    }
View Full Code Here

        return new TextInputField(name, new KongaTextArea(rows, columns).disableTabs(), jlabel);
    }
   
    public static TextInputField getTextInputPane(String name, String label) {
        JLabel jlabel = (label != null && label.length() > 0) ? new JLabel(label) : null;
        return new TextInputField(name, new KongaTextPane().disableTabs(), jlabel);
    }
View Full Code Here

        return new TextInputField(name, new KongaTextPane().disableTabs(), jlabel);
    }
   
    public static TextInputField2 getNonEmptyTextInputPane(String name, String label) {
        JLabel jlabel = (label != null && label.length() > 0) ? new JLabel(label) : null;
        JTextPane input = new KongaTextPane().disableTabs();
        return new DefaultNonEmptyTextInputField(name, input, jlabel);
    }
View Full Code Here

    public void requestFocus() {
        // Nothing to focus.
    }

    private JComponent getExpressionField() {
        JTextPane tp = new KongaTextPane("").disableTabs();
        tp.setFont(TextStyles.DefaultMonoSpaced.getFont());
        ScriptSyntaxHighlighter.install(tp);
        tp.setText(mapping.getExpression());
        tp.setEditable(false);
        return new JScrollPane(tp);
View Full Code Here

        return field;
    }

    // TODO: Duplicated code in InvalidMappingDetailsViewer. Move to a central place.
    private JTextPane createExpressionArea() {
        JTextPane tp = new KongaTextPane("").disableTabs();
        tp.setFont(TextStyles.DefaultMonoSpaced.getFont());
        ScriptSyntaxHighlighter.install(tp);
        tp.setEditable(false);
        tp.setPreferredSize(new Dimension(50, 125));
        return tp;
View Full Code Here

    /**
     * Creates a new, empty <code>XmlTextViewer</code>.
     *
     */
    public XmlTextViewer() {
        this(new KongaTextPane());
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.text.KongaTextPane

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.