Package org.jitterbit.ui.layout

Examples of org.jitterbit.ui.layout.OneColumnPanel.decorate()


            col.add(wrapFileSelector(existingFileSelector));
            col.setWeightY(0.0);
            col.setFill(Fill.HORIZONTAL);
            col.addAll(uploadLocalFileChoice, wrapFileSelector(localFileSelector));
            col.add(fromSampleFileChoice);
            col.decorate(canvas);
        }
    }

    private static JComponent wrapFileSelector(UiProvider selector) {
        JComponent c = BorderLayoutBuilder.fillWith(selector);
View Full Code Here


                } else {
                    col.add(new HtmlLabel(message.toString(), 400));
                }
                col.setInsets(0, 0, 0, 0);
                col.add(doNotShowAgainCheck);
                col.decorate(canvas);
            }

            @Override
            public void requestFocus() {
                doNotShowAgainCheck.requestFocus();
View Full Code Here

                col.setWeightX(1.0);
                col.setInsets(0, 0, 20, 0);
                col.add(Alert.getDisplayMessage(message));
                col.setInsets(0, 0, 0, 0);
                col.add(doNotShowAgainCheck);
                col.decorate(canvas);
            }

            @Override
            public void requestFocus() {
                doNotShowAgainCheck.requestFocus();
View Full Code Here

        col.add(selector);
        col.setInsets(0, 0, 3, 0);
        col.add(new JLabel("Info:"));
        col.setFillOut();
        col.add(infoViewer);
        col.decorate(canvas);
    }

    @Override
    public void requestFocus() {
        selector.requestFocusInWindow();
View Full Code Here

        addTypeAndDelimiterDefinersToLayout(layout);
        addFileSelectorToLayout(layout);
        addFileContentAreaToLayout(layout);
        addHelpButtonToLayout(layout);
        layout.setBorder(new BorderBuilder().etched().empty(5, 10, 5, 10));
        layout.decorate(canvas);
    }

    private void addTypeAndDelimiterDefinersToLayout(OneColumnPanel layout) {
        TwoColumnPanel grid = new TwoColumnPanel();
        grid.setInsets(0, 0, 3, 20);
View Full Code Here

        col.setWeightY(0.5);
        layoutFileSelector(col);
        layoutPluginSelector(col);
        col.setBorder(Empty.border(10));
        UiUtils.setPanelBackgrounds(col.getUi(), Colors.NEUTRAL_BACKGROUND);
        col.decorate(canvas);
    }

    private void layoutFileSelector(OneColumnPanel parent) {
        BorderLayoutBuilder wrapper = new BorderLayoutBuilder(fileSelector);
        wrapper.setBorder(StyleSheet.getLineTitleBorder("Input File"));
View Full Code Here

        col.setFill(Fill.HORIZONTAL);
        col.setInsets(0, 0, 2, 0);
        col.add(label);
        col.setInsets(0, 0, 0, 0);
        col.add(field);
        col.decorate(canvas);
        return col.getUi();
    }

    @Override
    public void requestFocus() {
View Full Code Here

            @Override
            public void decorate(UiCanvas canvas) {
                OneColumnPanel col = new OneColumnPanel();
                col.setInsets(0, 0, 5, 0);
                col.addAll("Command Line", field);
                col.decorate(canvas);
            }
        }, getClass().getSimpleName());
    }

}
View Full Code Here

        col.setInsets(2, 2, 2, 2);
        searchField.layoutIn(col);
        if (ruleSelector != null) {
            col.add(ruleSelector);
        }
        col.decorate(canvas);
    }

    @Override
    public void requestFocus() {
        searchField.giveFocusTo();
View Full Code Here

            col.setInsets(5, 0, 5, 0);
            col.setWeightX(1.0);
            layoutCaption(col);
            layoutPrefUi(col);
            layoutTitle(col);
            col.decorate(canvas);
        }
    }

    private void layoutCaption(final OneColumnPanel col) {
        if (caption != null) {
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.