Examples of glue()


Examples of cucumber.api.CucumberOptions.glue()

            Collections.addAll(glues, additionalGlues.value());
        }

        final CucumberOptions cucumberOptions = clazz.getAnnotation(CucumberOptions.class);
        if (cucumberOptions != null) {
            final String[] cucumberGlues = cucumberOptions.glue();
            if (cucumberGlues.length > 0) {
                final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
                final JavaBackend javaBackend = new JavaBackend(new MultiLoader(classLoader));
                final ScanGlue glue = new ScanGlue();
                javaBackend.loadGlue(glue, asList(cucumberGlues));
View Full Code Here

Examples of org.jitterbit.ui.layout.BoxBuilder.glue()

    private JComponent createOverlayButtons(OverlayDecorator overlay, Action okAction) {
        Grid buttons = Grid.oneRow(10);
        buttons.addAll(okAction, overlay.getCancelAction());
        BoxBuilder row = BoxBuilder.horizontal();
        row.glue().add(buttons);
        return row.container();
    }

    private void installShortcuts(OverlayDecorator overlay) {
        if (CancelFormulaBuilderOnEscapePreference.get()) {
View Full Code Here

Examples of org.jitterbit.ui.layout.BoxBuilder.glue()

        return label;
    }

    private JComponent layoutButtons() {
        BoxBuilder col = BoxBuilder.vertical();
        col.glue().addAllWithSpace(10, selectTablesAction, removeTablesAction).glue();
        return col.container();
    }

    @Override
    public void requestFocus() {
View Full Code Here

Examples of org.jitterbit.ui.layout.BoxBuilder.glue()

                designLauncher.dismiss();
                adminLauncher.activate(null);
            }
        });
        BoxBuilder row = BoxBuilder.horizontal().setOpaque(false);
        row.glue().add(button).rigid(24);
        return row.container();
    }

    private void layoutLogo() {
        JLabel label = new JLabel(LOGO);
View Full Code Here

Examples of org.jitterbit.ui.layout.BoxBuilder.glue()

        }

        private UiProvider createButtonPanel() {
            setFixedButtonSize(false);
            BoxBuilder p = BoxBuilder.horizontal();
            p.glue().addAllWithSpace(15, createOKButton(), createCancelButton(), helpButton).glue();
            return p.setOpaque(false).withEmptyBorder(10, 0, 10, 0);
        }

        private void setupUi() {
            ui.setDoExportAction(exportAction);
View Full Code Here

Examples of org.jitterbit.ui.layout.BoxBuilder.glue()

    private Object layoutNorthPart() {
        if (HideIncompatibleProjectsSwitch.ENABLED) {
            BoxBuilder row = BoxBuilder.horizontal();
            UiProvider hideIncompatibleProjectsSwitch = new HideIncompatibleProjectsSwitch(table, Versions.CURRENT,
                            RecentProjectsViewer.class);
            row.glue().add(hideIncompatibleProjectsSwitch);
            return row;
        }
        return null;
    }
View Full Code Here

Examples of org.jitterbit.ui.layout.BoxBuilder.glue()

        private void layoutRefreshColumnsButton() {
            if (refreshColumnsAction != null) {
                components.setFill(Fill.HORIZONTAL);
                components.setWeightY(0.0);
                BoxBuilder row = BoxBuilder.horizontal();
                row.glue().add(refreshColumnsAction);
                components.add(row);
            }
        }

        public void decorate(UiCanvas canvas) {
View Full Code Here

Examples of org.jitterbit.ui.layout.BoxBuilder.glue()

    }

    private JComponent createSouthToolBar() {
        BoxBuilder tb = BoxBuilder.horizontal();
        tb.addAll(actions);
        tb.glue().add(lineWrapCheckBox).rigid(10).addAll(getString("ChunkedTextFilePage.Label.Navigate"),
                        navigator.getGoToNextAndPreviousPageButtons());
        tb.setBorder(Empty.border(4, 0, 0, 4));
        return tb.container();
    }
View Full Code Here

Examples of org.jitterbit.ui.layout.BoxBuilder.glue()

        return forceButtonsToHaveSameSize ? getFixedSizeButtonLayout(buttons) : getVariableSizeButtonLayout(buttons);
    }

    private Object getVariableSizeButtonLayout(JButton[] buttons) {
        BoxBuilder row = BoxBuilder.horizontal();
        row.glue().addAllWithSpace(10, buttons);
        return row;
    }

    private Object getFixedSizeButtonLayout(JButton[] buttons) {
        Grid row = Grid.oneRow(10);
View Full Code Here

Examples of org.jitterbit.ui.layout.BoxBuilder.glue()

    }

    private BorderLayoutBuilder createDialogLayout() {
        BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 10);
        BoxBuilder buttons = BoxBuilder.horizontal();
        buttons.glue().add(attachAction);
        JComponent contentView = createContentView();
        layout.center(contentView).south(buttons);
        layout.setBorder(Empty.border(10));
        return layout;
    }
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.