Package org.jitterbit.ui.layout

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


        BoxBuilder col = BoxBuilder.vertical().leftAligned();
        Section backup = new Section(
                        getTitle(),
                        Strings.get("StructureEditor.StartPage.Backup.Caption"),
                        backupChoice);
        col.addAllWithSpace(20, backup.getLayout(), migrationSection).setOpaque(false);
        setMainPanel(InvisiblePanel.newPanel(col));
    }

    private void installMigrationEnabledListener() {
        backupChoice.addItemListener(new ItemListener() {
View Full Code Here


     */
    public void addToParent(Container parent, Object layout) {
        BoxBuilder row = BoxBuilder.horizontal();
        Collection<JButton> buttons = buttonMap.values();
        buttons.remove(cancelButton);
        row.addAllWithSpace(5, buttons);
        row.rigid(50).add(cancelButton);
        row.setOpaque(false);
        row.addToParent(parent, layout);
    }
   
View Full Code Here

     * @param panel
     *            the <code>JPanel</code> in which to layout this toolbar.
     */
    protected void layoutToolBarPanel(JPanel panel) {
        BoxBuilder layout = isHorizontal() ? BoxBuilder.horizontal(panel) : BoxBuilder.vertical(panel);
        layout.addAllWithSpace(5, toolBars).glue();
    }

    private boolean isHorizontal() {
        return orientation == JToolBar.HORIZONTAL;
    }
View Full Code Here

                panel.removeAll();
            }
            panel.add(titleLabel, BorderLayout.WEST);
            if (additionalComponents != null && additionalComponents.length > 0) {
                BoxBuilder row = BoxBuilder.horizontal();
                row.addAllWithSpace(10, additionalComponents);
                row.setOpaque(false);
                row.glue();
                panel.add(row.container(), BorderLayout.CENTER);
            } else {
                panel.add(Box.createHorizontalGlue(), BorderLayout.CENTER);
View Full Code Here

            } else {
                panel.add(Box.createHorizontalGlue(), BorderLayout.CENTER);
            }
            if (toolBars != null) {
                BoxBuilder row = BoxBuilder.horizontal().setOpaque(false);
                row.addAllWithSpace(5, toolBars);
                row.addToParent(panel, BorderLayout.EAST);
            }
        }

        String getTitle() {
View Full Code Here

    }

    @Override
    public void decorate(UiCanvas canvas) {
        BoxBuilder row = BoxBuilder.horizontal();
        row.addAllWithSpace(5, field.getLabel(), field.getInputComponent()).glue();
        row.decorate(canvas);
    }

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

    }

    @Override
    public void decorate(UiCanvas canvas) {
        BoxBuilder buttons = BoxBuilder.horizontal();
        buttons.addAllWithSpace(10, asButtons());
        buttons.decorate(canvas);
    }

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

    private void layoutComponents() {
        TwoColumnPanel p = new TwoColumnPanel();
        p.setRightAnchor(TwoColumnPanel.SOUTHWEST);
        p.setLeftWeights(1.0, 0.0).setLeftFill(Fill.HORIZONTAL);
        BoxBuilder quickButtons = BoxBuilder.horizontal();
        quickButtons.addAllWithSpace(5, todayButton, lastDaysButton, lastHoursButton);
        p.addRow(InvisiblePanel.newPanel(quickButtons));
        p.addRow(InputFieldFactory.getCapsule(startField), startButton);
        p.addRow(InputFieldFactory.getCapsule(endField), endButton);
        inputPanel.wrap(p);
    }
View Full Code Here

    public void decorate(UiCanvas canvas) {
        BoxBuilder ui = BoxBuilder.vertical().leftAligned();
        if (!setCaptionInline) {
            captionLabel = createCaptionLabel(caption);
        }
        ui.addAllWithSpace(3, captionLabel, comboBox).decorate(canvas);
    }

    private JLabel createCaptionLabel(String caption) {
        if (caption == null) {
            return null;
View Full Code Here

    }

    @Override
    public void decorate(UiCanvas canvas) {
        BoxBuilder row = BoxBuilder.horizontal();
        row.addAllWithSpace(5, zoomOutButton, zoomInButton, valueField);
        row.decorate(canvas);
    }

    @Override
    public void requestFocus() {
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.