Package org.jitterbit.ui.layout

Examples of org.jitterbit.ui.layout.Grid.addAll()


        }

        @Override
        public void decorate(UiCanvas canvas) {
            Grid row = Grid.oneRow(20);
            row.addAll(layoutSelector(relation.getParentObject(), parentSelector),
                            layoutSelector(relation.getChildObject(), childSelector));
            row.decorate(canvas);
        }

        private Object layoutSelector(DatabaseObject table, JComboBox combo) {
View Full Code Here


        return cp;
    }
   
    private void addInstructions(Container cp) {
        Grid col = Grid.oneColumn();
        col.addAll("F1: apply filter", "F2: remove filter");
        cp.add(col.get(), BorderLayout.NORTH);
    }
   
    private void addKeyBindings(QuickFrame frame, final EntitySelector<Source> selector) {
        frame.addKeyBinding("filter", KeyUtils.F1, new AbstractAction() {
View Full Code Here

        QuickFrame.show(scroll, "DropDownPanelTest");
    }

    private JComponent createContents() {
        Grid contents = Grid.oneColumn(10);
        contents.addAll("Hello", "planet", "Earth");
        JComponent wrapper = BorderLayoutBuilder.fillWith(contents);
        return wrapper;
    }

    public static void main(String[] args) {
View Full Code Here

        parent.setInsets(15, 0, 0, 0);
        parent.setFillNone();
        parent.setWeightX(0.0);
        parent.setWeightY(1.0);
        Grid row = Grid.oneRow(20).setOpaque(false);
        row.addAll(enterTagAction, deployAction);
        parent.add(row);
    }

    private JComponent createContentBox(OneColumnPanel content) {
        JComponent box = BorderLayoutBuilder.fillWith(content);
View Full Code Here

            col.setWeightX(1.0);
            col.add(InvisiblePanel.newPanel(new KongaButton(downloadAction)));
            JLabel caption = caption("ProjectConsole.Activator.Caption");
            col.add(new CaptionTitlePanel(caption, 20));
            Grid activatorRow = Grid.oneRow(10);
            activatorRow.addAll(activators);
            activatorRow.setBorder(Empty.border(0, 0, 8, 0));
            col.add(activatorRow);
            col.add(caption("ProjectConsole.Actions"));
            col.add(cards);
            JComponent layout = InvisiblePanel.newPanel(col);
View Full Code Here

        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.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());
    }

    private JComponent createVideoIcon() {
View Full Code Here

        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

        return p;
    }

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


    private static class Model extends AbstractPropertyBasedModel {
View Full Code Here

        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

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.