Package org.jitterbit.ui.layout

Examples of org.jitterbit.ui.layout.Grid


            b.addActionListener(this);
            return b;
        }

        private JComponent createCategoryCard(Category cat) {
            Grid col = Grid.oneColumn(10);
            for (Action a : consoleActions.get(cat)) {
                KongaButton b = new KongaButton(a);
                b.setHorizontalAlignment(SwingConstants.LEADING);
                b.setUseMediumActionIcon(true);
                col.add(b);
            }
            return InvisiblePanel.newPanel(col);
        }
View Full Code Here


        base.add(new JLabel(Empty.iconOfSameSize(icon)));
        base.setBorder(new BorderBuilder().line().empty(24, 16, 24, 16));
        KongaLayeredPane layers = new KongaLayeredPane();
        layers.setBaseComponent(base);
        layers.addOverlay(logoPanel, new OverlayCenterPositioner());
        Grid grid = Grid.oneColumn(20);
        grid.setOpaque(false);
        grid.addAll(dataComesIn, dataGoesOut, cantExplainThat);
        grid.get().setSize(grid.get().getPreferredSize());
        layers.addOverlay(grid.get(), new OverlayCenterPositioner());
        layers.setBorder(new BorderBuilder().line().empty(32));
        return layers;
    }
View Full Code Here

        TextStyle style = TextStyle.adjustSize(
                        TextStyle.newColor(TextStyles.DefaultBoldLarger, Colors.NEUTRAL_BACKGROUND), 1);
        JLabel first = style.makeLabel("Don't forget! If you're a Jitterbit customer");
        JLabel second = style.makeLabel("you can reach us by email or phone per your");
        JLabel third = style.makeLabel("support contract.");
        Grid col = Grid.oneColumn(5);
        col.addAll(first, second, third);
        col.setBackground(Colors.JITTERBIT_BLUE).setBorder(Empty.border(8, 16, 8, 16));
        return InvisiblePanel.newPanel(col.get());
    }
View Full Code Here

        layout.north(getCaption()).center(center);
        layout.decorate(canvas);
    }

    protected JComponent layoutButtons() throws RuntimeException {
        Grid sections = Grid.oneRow(20);
        sections.setBackground(Colors.NEUTRAL_BACKGROUND);
        sections.setBorder(Empty.border(4, 10, 8, 10));
        JComponent salesforce = layoutButtons("Salesforce", salesforceButtons);
        JComponent standard = layoutButtons("Standard", standardButtons);
        if (salesforce == null && standard == null) {
            throw new RuntimeException("The client configuration does not contain any connect wizards.");
        } else {
            sections.addAll(standard, salesforce);
        }
        BoxBuilder centerAnchor = BoxBuilder.horizontal().setOpaque(false);
        centerAnchor.glue().add(sections).glue();
        BorderLayoutBuilder northAnchor = new BorderLayoutBuilder().setOpaque(false);
        northAnchor.north(centerAnchor);
View Full Code Here

        p.add(programmerCheckBox);
        return p;
    }

    private UiProvider layoutButtons() {
        Grid col = Grid.oneColumn(10);
        col.addAll(randomizeModel, printModel);
        return col;
    }
View Full Code Here

        buttonPanel.setBorder(Empty.border(10, 0, 10, 0));
        Component bottom = getBottomMessageComponent(bottomMessage);
        if (bottom == null) {
            layout.south(buttonPanel);
        } else {
            Grid grid = new Grid(2, 1, 0, 10);
            grid.addAll(bottom, buttonPanel);
            layout.south(grid);
        }
        layout.setBorder(Empty.border(10)).asContentPaneFor(this);
        pack();
    }
View Full Code Here

    private boolean needsToolbar() {
        return actions != null && buttonPlacement == ButtonPlacement.TOOLBAR;
    }

    private JComponent createToolbar() {
        Grid grid = Grid.oneRow(10).addAll(actions);
        return new BorderLayoutBuilder().east(grid).setOpaque(false).container();
    }
View Full Code Here

        return center;
    }
   
    private void layoutSouthPart(BorderLayoutBuilder parent) {
        if (actions != null && buttonPlacement == ButtonPlacement.DIALOG) {
            Grid grid = Grid.oneRow(10).addAll(actions).setOpaqueRecursively(false);
            BorderLayoutBuilder south = new BorderLayoutBuilder().east(grid);
            south.setBorder(Empty.border(10, 0, 10, 10)).setBackground(getContentBackgroundColor());
            parent.south(south);
        }
    }
View Full Code Here

            caption.setLabelFor(field);
            grid.addRow(caption, field);
        }

        private void layoutControlRow() {
            Grid row = Grid.oneRow(5);
            row.add(directionPanel);
            if (showOptions) {
                layoutOptionsCheckBoxes(row);
            }
            layout.add(row);
        }
View Full Code Here

    }

    private JComponent doLayout(TextSearchController controller) {
        BorderLayoutBuilder layout = new BorderLayoutBuilder(10, 0);
        layout.center(replaceUi);
        Grid buttons = Grid.oneColumn(5);
        buttons.addAll(controller.getFindAction(), controller.getReplaceAction(), controller.getReplaceAndFindAction(),
                        controller.getReplaceAllAction());
        layout.east(InvisiblePanel.newPanel(buttons));
        layout.setBorder(Empty.border(5));
        return layout.container();
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.layout.Grid

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.