Package org.jitterbit.ui.layout

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


        @Override
        public void decorate(UiCanvas canvas) {
            BorderLayoutBuilder p = new BorderLayoutBuilder(0, 10);
            p.north("Are you sure you want to run all of the following operations?").center(tree);
            p.decorate(canvas);
        }

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


        BorderLayoutBuilder row = new BorderLayoutBuilder();
        row.center(label).east(buttons);
        row.setBackground(BACKGROUND);
        Border border = createBorder();
        row.setBorder(border);
        row.decorate(canvas);
    }

    private static Border createBorder() {
        Border outside = SimpleTabPane.SUPPORTED ? new NoTopEtchedBorder() : new EtchedBorder();
        Border border = new CompoundBorder(outside, Empty.border(3, 5, 3, 5));
View Full Code Here

                    "<li>Do a Test Connection on each of the database Sources and Targets;</li>" +
                "<li>It is also recommended that you create a backup of your project.</li>" +
                "</ul>" +
                "<br><br>Please select a conversion:</html>");
            layout.south(Grid.oneColumn(10).addAll(buttons));
            layout.decorate(canvas);
        }

        @Override
        public void requestFocus() {
            buttons.get(0).requestFocusInWindow();
View Full Code Here

    public void decorate(UiCanvas canvas) {
        BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 10);
        layout.setBackground(Colors.NEUTRAL_BACKGROUND);
        JComponent center = layoutButtons();
        layout.north(getCaption()).center(center);
        layout.decorate(canvas);
    }

    protected JComponent layoutButtons() throws RuntimeException {
        Grid sections = Grid.oneRow(20);
        sections.setBackground(Colors.NEUTRAL_BACKGROUND);
View Full Code Here

        if (label == null) {
            canvas.display(c);
        } else {
            BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 2);
            layout.north(label).center(c);
            layout.decorate(canvas);
        }
    }

    @Override
    public void setLabel(JLabel label) {
View Full Code Here

    @Override
    public void decorate(UiCanvas canvas) {
        UiProvider toolbar = createToolbar();
        BorderLayoutBuilder layout = doLayout(toolbar);
        layout.decorate(canvas);
    }

    private UiProvider createToolbar() {
        BoxBuilder tb = BoxBuilder.horizontal().bottomAligned().setOpaque(false);
        JLabel label = createTitleLabel();
View Full Code Here

        @Override
        public void decorate(UiCanvas canvas) {
            if (isVisible()) {
                BorderLayoutBuilder layout = new BorderLayoutBuilder();
                layout.north(button).center(panel);
                layout.decorate(canvas);
            } else {
                canvas.display(button);
            }
        }
View Full Code Here

        }

        public void decorate(UiCanvas canvas) {
            BorderLayoutBuilder anchor = new BorderLayoutBuilder();
            anchor.north(layout);
            anchor.decorate(canvas);
        }

        private void layoutSearchFields() {
            TwoColumnPanel grid = new TwoColumnPanel();
            grid.setLeftInsets(0, 0, 5, 5);
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.