Package org.jitterbit.ui.layout

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


    }
   
    private void layoutExtraOptions() {
        BoxBuilder row = BoxBuilder.horizontal();
        row.setAlignmentY(Component.TOP_ALIGNMENT);
        row.addAllWithSpace(20, sslOptionsPanel.getUi(), authenticationPanel.getUi());
        row.setBorder(new BorderBuilder().etched().empty(5));
        extraOptionsContainer.add(InvisiblePanel.newPanel(row), SHOW_EXTRA_OPTIONS);
    }
   
}
View Full Code Here


        Action stopAction = createActionWrapper(StopDebuggingAction.ID, stopHandler, dialog);
        stopAction.putValue(Action.NAME, "Stop Current Test and Continue With New Test");
        JButton cancelButton = dialog.createCancelButton();
        BoxBuilder buttons = BoxBuilder.horizontal();
        buttons.setUseSmallSizedIconsForActions(true);
        buttons.addAllWithSpace(10, stopAction, continueAction).glue().add(cancelButton);
        layout.south(buttons);
        layout.setBorder(Empty.border(10));
        layout.asContentPaneFor(dialog);
        dialog.pack();
        dialog.setLocationRelativeTo(null);
View Full Code Here

            row.setInsets(0, 0, 0, 10);
            if (caption != null) {
                row.add(caption);
            }
            BoxBuilder buttonLayout = BoxBuilder.horizontal();
            buttonLayout.addAllWithSpace(10, getButtonLayouts());
            row.setWeightX(1.0);
            row.add(buttonLayout);
            installLeftRightNavigation(row.getUi());
        }
View Full Code Here

    }

    @Override
    public void layout(TwoColumnLayout layout) {
        BoxBuilder row = BoxBuilder.horizontal();
        row.addAllWithSpace(10, InputFieldFactory.getCapsule(defaultActivator, InputFieldFactory.HORIZONTAL_LABEL_LEFT),
                        InputFieldFactory.getCapsule(typeField, InputFieldFactory.HORIZONTAL_LABEL_LEFT));
        layout.addRow(row.container());
    }

    @Override
View Full Code Here

    }

    @Override
    public JPanel getUi() {
        BoxBuilder row = BoxBuilder.horizontal();
        row.addAllWithSpace(10, Strings.get("Location.Http.Label.Verb"), options);
        return InvisiblePanel.newPanel(row);
    }
   
    private static HttpVerb getVerb(HttpLocation loc, SourceTarget st) {
        HttpVerb verb = loc.getHttpVerb();
View Full Code Here

        if (leftMargin < 0) {
            layout.glue();
        } else if (leftMargin > 0) {
            layout.strut(leftMargin);
        }
        layout.addAllWithSpace(horizontalSpace, buttons);
        if (rightMargin < 0) {
            layout.glue();
        } else if (rightMargin > 0) {
            layout.strut(rightMargin);
        }
View Full Code Here

        public void decorate(UiCanvas canvas) {
            BorderLayoutBuilder layout = new BorderLayoutBuilder();
            layout.center(cards);
            BoxBuilder tabRow = BoxBuilder.horizontal().topAligned();
            tabRow.setBorder(Empty.border(0, 8, 16, 0)).setOpaque(true).setBackground(Colors.JITTERBIT_BLUE);
            tabRow.addAllWithSpace(TAB_GAP, tabs);
            layout.south(tabRow);
            layout.decorate(canvas);
        }

        @Override
View Full Code Here

    private static JComponent createCaption(IntegrationEntity entity) {
        BoxBuilder row = BoxBuilder.horizontal();
        JLabel entityLabel = new JLabel();
        RendererUtils.decorateRenderer(entityLabel, entity, Size.MEDIUM);
        row.addAllWithSpace(5, entityLabel, "will next run:");
        return row.container();
    }

    private TestScheduleResultViewer(JComponent caption, Date[] timestamps) {
        this.caption = caption;
View Full Code Here

        return b;
    }

    private static JComponent layoutButtons(JButton resume, JButton stop, JButton close) {
        BoxBuilder row = BoxBuilder.horizontal();
        row.addAllWithSpace(10, resume, stop).glue().add(close);
        return row.container();
    }

    private static void configureDebugActions(final KongaDialog dialog, JButton... buttons) {
        ActionListener lst = new ActionListener() {
View Full Code Here

            row.setAlignmentY(Component.BOTTOM_ALIGNMENT);
            row.add(createCaption()).rigid(20).glue();
            if (includeApplyButton) {
                row.add(new ApplyPluginSettingsAction(model, controller)).rigid(10);
            }
            row.addAllWithSpace(10, viewDetailsAction, removeAction);
            OneColumnPanel col = new OneColumnPanel();
            col.setWeightX(1.0);
            JLabel title = WizardStyleSheet.CAPTION_STYLE.makeLabel(getString("AppliedPluginsViewer.Title.Current"));
            col.addAll(title, row);
            return col.getUi();
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.