Package org.jitterbit.ui.widget.text

Examples of org.jitterbit.ui.widget.text.KongaTextArea$RepaintTrigger


    public FlatStructureFilterDefiner(DatabaseStructure dbStruct) {
        checkArgument(dbStruct.isFlat(), "dbStruct must define a Flat structure.");
        String sql = getSqlStatement(dbStruct);
        sqlArea = KongaTextArea.viewer(sql, 4, 40);
        whereClauseArea = new KongaTextArea(4, 40).disableTabs();
        if (!dbStruct.hasManualSqlStatement()) {
            String where = getOriginalFilter(sql);
            whereClauseArea.setText(where);
        }
        layoutComponents();
View Full Code Here


            }
        });
    }

    private static BorderLayoutBuilder createLayout(String warnings) {
        KongaTextArea text = KongaTextArea.viewer(warnings, 10, 70);
        BorderLayoutBuilder layout = new BorderLayoutBuilder(10, 0);
        JLabel icon = new JLabel(UIManager.getIcon("OptionPane.warningIcon"));
        icon.setVerticalAlignment(SwingConstants.TOP);
        layout.west(icon).center(text);
        return layout;
View Full Code Here

    private void createComponents() {
        captionLabel = new JLabel(Strings.get("TreeFilterDefiner.Caption"));
        rootLabel = TextStyles.AdminHint.makeLabel(getRootLabel(rootName));
        String where = lastWhereClauses.get(dbStructure);
        whereClauseArea = new KongaTextArea(where, 5, 40).disableTabs();
    }
View Full Code Here

            this.title = title;
            this.text = text;
        }
       
        private JComponent getViewer() {
            KongaTextArea viewer = KongaTextArea.viewer(text, 10, 60);
            JScrollPane scroll = new JScrollPane(viewer);
            scroll.setBorder(Empty.border());
            return scroll;
        }
View Full Code Here

        parent.setRightWeights(1.0, 1.0);
        parent.addRow(label, area);
    }

    private static JComponent createTextArea(String value, int rows) {
        KongaTextArea area = KongaTextArea.viewer(value, rows, 60);
        return new JScrollPane(area);
    }
View Full Code Here

        c1.addActionListener(new ExclusiveChoiceOptionListener(c1, c2));
        c2.addActionListener(new ExclusiveChoiceOptionListener(c2, c1));
    }
   
    private KongaTextArea createRequestHeadersBox(String requestHeaders) {
        KongaTextArea box = new KongaTextArea(requestHeaders, 4, 60);
        box.setLabel(Strings.get("HttpPropertiesPanel.requestHeaders"));
        box.setLineWrap(false);
        box.setWrapStyleWord(false);
        box.disableTabs();
        DeTemplateTransferSupport.installDropHandler(box);
        return box;
    }
View Full Code Here

        columnsTable = createColumnsTable(dbObj);
        displayer = layoutComponents();
    }

    private KongaTextArea createSqlArea() {
        KongaTextArea sqlTextArea = new KongaTextArea(4, 30).disableTabs();
        sqlTextArea.setLabel(PackageResources.SingleTableWhereClausePage.Labels.WHERE_CLAUSE);
        return sqlTextArea;
    }
View Full Code Here

        PreferencesKey prefKey = new PreferencesKey(ExportJitterPackUi.class, "SelectedFile");
        return new PreferencesFileStore(prefKey, 1);
    }

    private TextInputField createCommentArea() {
        KongaTextArea text = new KongaTextArea(
                        getProjectToExport().getProject().getJitterPackComment(), 10, 40).disableTabs();
        String name = Strings.get("Export.Comment.Title");
        text.setTextWhenEmpty("Enter an optional comment for this Jitterpak");
        return new TextInputField(name, text, name);
    }
View Full Code Here

        try {
            EventQueue.invokeAndWait(new Runnable() {

                @Override
                public void run() {
                    KongaTextArea msg = KongaTextArea.viewer(10, 60);
                    msg.setText(ex.getMessage() + "\n\n" + getStackTrace(ex));
                    JOptionPane.showMessageDialog(null, new JScrollPane(msg), "Startup Error", JOptionPane.ERROR_MESSAGE);
                }
            });
        } catch (Exception ex2) {
            // Give up. The original error will be written to the console as well, so it won't be
View Full Code Here

        installAutoCompletion();
        installAutoIndent();
    }
   
    private KongaTextArea createTextArea() {
        KongaTextArea textArea = new KongaTextArea(20, 100);
        textArea.setLineWrap(false);
        TextStyles.DefaultMonoSpaced.makeOver(textArea);
        textArea.setLabel("&Script:");
        textArea.setTabSize(2);
        return textArea;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.text.KongaTextArea$RepaintTrigger

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.