Package org.jitterbit.ui.layout

Examples of org.jitterbit.ui.layout.Grid


        layout.north(createControlPanel()).center(table);
        layout.decorate(canvas);
    }

    private JComponent createControlPanel() {
        Grid buttons = Grid.oneRow(10);
        Action addAction = new AddNewAttributeAction();
        SelectionAction deleteAction = new DeleteAttributesAction();
        deleteAction.setSelectionSource(table);
        buttons.addAll(addAction, deleteAction);
        return InvisiblePanel.newPanel(buttons);
    }
View Full Code Here


        layout.south(layoutControls());
        layout.decorate(canvas);
    }

    private JComponent layoutControls() {
        Grid buttons = Grid.oneRow(10);
        buttons.addAll(new AddConnectionAction("&Link", lists), new DeleteConnectionAction("&Remove Link", lists));
        BoxBuilder row = BoxBuilder.horizontal();
        row.add(InvisiblePanel.newPanel(buttons)).glue().add(displayOrderSelector);
        return row.container();
    }
View Full Code Here

            return null;
        }

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

            addNoPropertiesMessage(parent);
        }
    }

    private void addCheckBoxes(OneColumnPanel parent) {
        Grid grid = new Grid(4, 0).addAll(checkBoxes.keySet());
        parent.add(grid);
    }
View Full Code Here

    private JComponent layoutTopControls(Action[] serverActions, Action[] modelActions) {
        Action[] top = serverActions;
        Action[] bottom = modelActions;
        int cols = Math.max(top.length, bottom.length);
        Grid grid = new Grid(2, cols, 10, 10);
        layoutButtons(grid, cols, top);
        layoutButtons(grid, cols, bottom);
        return InvisiblePanel.newPanel(grid);
    }
View Full Code Here

        ContainerCanvas.decorate(selector, cp, BorderLayout.CENTER);
        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);
    }
View Full Code Here

        ContainerCanvas.decorate(selector, cp, BorderLayout.CENTER);
        return cp;
    }
   
    private void addInstructions(Container cp) {
        Grid col = Grid.oneColumn().addAll("F1: apply filter", "F3: remove filter",
                        "CTRL-N: add new source", "DELETE: remove selected sources");
        cp.add(col.get(), BorderLayout.NORTH);
    }
View Full Code Here

        KongaScrollPane scroll = new KongaScrollPane(layers);
        QuickFrame.show(scroll, "DropDownPanelTest");
    }

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

    private void layoutButtonPanel(OneColumnPanel parent) {
        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);
    }
View Full Code Here

            col.setInsets(0, 0, 10, 0);
            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);
            return layout;
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.