Package org.jitterbit.ui.layout

Examples of org.jitterbit.ui.layout.Grid


        left.center(searchFieldsPanel).south(layoutOptions());
        left.setBorder(StyleSheet.getDefaultTitleBorder("Search Parameters"));
        JComponent right = BorderLayoutBuilder.fillWith(resultList);
        right.setBorder(StyleSheet.getDefaultTitleBorder("Matching Items"));
        right.setPreferredSize(new Dimension(150, 100));
        Grid grid = Grid.oneRow(10);
        grid.addAll(left, right);
        grid.decorate(canvas);
    }
View Full Code Here


        tabSizePreference.decorate(canvas);
        getAutoAssistPreferencesLayout().decorate(canvas);
    }

    private UiProvider getAutoAssistPreferencesLayout() {
        Grid cols = Grid.oneColumn(10).setBorder(StyleSheet.getDefaultTitleBorder("Auto-Assist"));
        cols.add("Automatically insert matching character when typing:");
        cols.addAll(autoAssistParenthesisPreference, autoAssistDoubleQuotePreference, autoAssistSingleQuotePreference);
        JLabel notice = new JLabel("Changes do not affect currently open Scripts and Transformations",
                        CommonIcons.INFO_16, SwingConstants.LEADING);
        cols.add(notice);
        return cols;
    }
View Full Code Here

        return PackageResources.LogStatusFilter.getFilterString(lastSelection);
    }

    @Override
    public void decorate(UiCanvas canvas) {
        Grid quickSelectors = Grid.oneColumn(6);
        quickSelectors.addAll(
            new SelectAll(),
            new SelectSet("Unselect All", EnumSet.noneOf(LogStatus.class), "Unselect all log statuses"),
            new SelectSet("Completed", LogStatus.completed(),
                            "Include only those operations that have completed"),
            new SelectSet("Not Completed", LogStatus.stillInQueue(),
                            "Include only those operations that are still running or in the queue")
        );
        Grid checkBoxes = new Grid(0, 2, 8, 6);
        for (LogStatus s : displayOrder()) {
            checkBoxes.add(selectors.get(s));
        }
        BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 8);
        layout.center(checkBoxes).east(InvisiblePanel.newPanel(quickSelectors));
        layout.setBorder(StyleSheet.getDefaultTitleBorder(PackageResources.LogStatusFilter.LABEL));
        layout.decorate(canvas);
View Full Code Here

        ui = layout.container();
        canvas.display(ui);
    }

    private JComponent layoutLeftButtons() {
        Grid grid = Grid.oneRow(10);
        grid.setButtonStyle(WizardStyleSheet.SMALL_CAPTION_STYLE);
        grid.setUseMediumSizedIconsForActions(true);
        grid.addAll(openFromTableAction, new BrowseAction(), new SearchAction()).setOpaque(false);
        return InvisiblePanel.newPanel(grid);
    }
View Full Code Here

        TwoColumnPanel grid = new TwoColumnPanel();
        grid.setLeftInsets(0, 0, 2, 5).setRightInsets(0, 0, 2, 0).setLeftWeights(1.0, 0.0).setLeftFill(Fill.HORIZONTAL);
        KongaLabel caption = KongaLabel.withMnemonic("(Optional) &Name filter:");
        caption.setLabelFor(field);
        grid.addRow(caption);
        Grid options = Grid.oneRow(10);
        options.addAll(startsWith, contains);
        grid.addRow(field, options.get());
        grid.decorate(canvas);
    }
View Full Code Here

        buttons = createButtons(receiver);
    }
   
    @Override
    public void decorate(UiCanvas canvas) {
        Grid buttonPanel = new Grid(0, COLUMNS, 3, 3).addAll(buttons);
        BorderLayoutBuilder layout = new BorderLayoutBuilder(buttonPanel);
        layout.withEmptyBorder(10, 0, 10, 0);
        layout.decorate(canvas);
    }
View Full Code Here

        row.glue().addAllWithSpace(10, buttons);
        return row;
    }

    private Object getFixedSizeButtonLayout(JButton[] buttons) {
        Grid row = Grid.oneRow(10);
        row.addAll(buttons);
        return BoxBuilder.horizontal().glue().add(row);
    }
View Full Code Here

        return layout;
    }


    public static JComponent layoutButtons(JButton... buttons) {
        Grid grid = Grid.oneRow(10);
        grid.addAll(buttons);
        grid.setOpaque(false);
        OneColumnPanel panel = new OneColumnPanel();
        panel.setAnchor(Anchor.EAST);
        panel.add(grid);
        panel.setBackground(Colors.JITTERBIT_BLUE);
        return panel.getUi();
View Full Code Here

        setActiveEditorAction = new SetActiveEditorAction();
        editorList.setDefaultAction(setActiveEditorAction);
    }

    private JComponent createButtons() {
        Grid layout = Grid.oneColumn(5);
        layout.addAll(setActiveEditorAction, closeEditorsAction);
        layout.get().setBorder(COMPONENT_BORDER);
        return InvisiblePanel.newPanel(layout);
    }
View Full Code Here

        layoutInDialog(dialog, canvas);
    }

    private void layoutInDialog(KongaDialog dialog, UiCanvas canvas) {
        List<JButton> buttons = createButtonsForDialog();
        Grid buttonRow = Grid.oneRow(10);
        buttonRow.setOpaque(false);
        buttonRow.addAll(buttons);
        BoxBuilder controlPanel = BoxBuilder.horizontal();
        controlPanel.glue().add(buttonRow).glue();
        controlPanel.setOpaque(false);
        controlPanel.decorate(canvas);
    }
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.