Package org.jitterbit.ui.layout

Examples of org.jitterbit.ui.layout.Grid


        this(thumbnails, columns, false);
    }

    public EditorThumbnailSelector(List<EditorThumbnail> thumbnails, int columns, boolean reverseOrder) {
        this.thumbnails = Maps.newHashMap();
        grid = new Grid(0, columns, 10, 10);
        grid.setBorder(Empty.border(8)).setOpaque(false);
        components = createLayoutComponents(thumbnails, columns, reverseOrder);
        layoutGrid(new MouseHandler());
        installKeyBindings();
    }
View Full Code Here


        childSelector.setSelectedIndex(-1);
    }
   
    @Override
    public void decorate(UiCanvas canvas) {
        Grid row = Grid.oneRow(20);
        row.addAll(parentSelector, childSelector);
        row.decorate(canvas);
    }
View Full Code Here

        return null;
    }

    @Override
    public JComponent getToolBarContribution() {
        Grid grid = Grid.oneRow(10).addAll(buttons).setOpaqueRecursively(false);
        return InvisiblePanel.newPanel(grid);
    }
View Full Code Here

        text.setAlignmentX(Component.LEFT_ALIGNMENT);
        parent.add(text);
    }

    private JComponent getStatusButtonsPanel(String caption) {
        Grid buttonRow = Grid.oneRow(10);
        List<JButton> buttons = Lists.newArrayList();
        for (Action a : controller.getAllStatusActions()) {
            buttons.add(new KongaButton(a));
        }
        buttonRow.addAll(buttons);
        BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 10);
        return layout.north(caption).center(buttonRow).container();
    }
View Full Code Here

        });
        return button;
    }

    private static JComponent createOneColumnLayout(UiProvider... uis) {
        Grid launchPanel = Grid.oneColumn();
        for (UiProvider ui : uis) {
            launchPanel.add(ui);
        }
        return new BorderLayoutBuilder().north(launchPanel)
                        .setBorder(Empty.border(10, 0, 0, 0))
                        .setBackground(Color.WHITE).container();
    }
View Full Code Here

    public JComponent getUi() {
        return pageArea.container();
    }

    private JComponent layoutServerActions(Action[] serverActions) {
        Grid grid = Grid.oneRow(10).addAll(serverActions);
        return InvisiblePanel.newPanel(grid);
    }
View Full Code Here

        Grid grid = Grid.oneRow(10).addAll(serverActions);
        return InvisiblePanel.newPanel(grid);
    }

    private JComponent layoutModelAndViewActions(Action[] modelActions, Action[] viewActions) {
        Grid grid = Grid.oneColumn(10).addAll(modelActions).addAll(viewActions);
        return InvisiblePanel.newPanel(grid);
    }
View Full Code Here

   
    private UiProvider layoutLeftPartOfViewerArea(UiProvider usersAndGroups, Action[] modelActions) {
        BorderLayoutBuilder area = new BorderLayoutBuilder(0, 10);
        area.center(usersAndGroups);
        // HACK: This assumes that we know exactly what actions are returned and in which order.
        Grid buttons = new Grid(0, 2, 10, 10);
        for (Action a : modelActions) {
            KongaButton button = new KongaButton(a).setUseSmallActionIcon(true);
            buttons.add(button);
        }
        area.south(InvisiblePanel.newPanel(buttons));
        return area;
    }
View Full Code Here

        area.south(InvisiblePanel.newPanel(buttons));
        return area;
    }

    private JComponent layoutTopControls(Action[] serverActions) {
        Grid grid = Grid.oneRow(10).addAll(serverActions);
        return InvisiblePanel.newPanel(grid.get());
    }
View Full Code Here

            }
        }
    }

    private JPanel layoutCheckBoxes() {
        Grid grid = new Grid(0, 3, 10, 5);
        grid.addAll(checks.values());
        return grid.get();
    }
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.