Examples of glue()


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

            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);
            }
            if (toolBars != null) {
View Full Code Here

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

        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);
    }

    private List<JButton> createButtonsForDialog() {
View Full Code Here

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

        public JComponent layout() {
            OneColumnPanel col = new OneColumnPanel();
            col.setInsets(0, 0, 2, 0).setWeightX(0.0).setFill(Fill.NONE);
            col.addAll(labels);
            BoxBuilder horizontalGlue = BoxBuilder.horizontal();
            horizontalGlue.glue().add(col).glue();
            BorderLayoutBuilder verticalAnchor = new BorderLayoutBuilder();
            verticalAnchor.center(" ").south(horizontalGlue);
            verticalAnchor.setOpaqueRecursively(false);
            return verticalAnchor.container();
        }
View Full Code Here

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

            panel.add(center, BorderLayout.CENTER);
        }

        private void layoutButtons() {
            BoxBuilder row = BoxBuilder.horizontal();
            row.glue().add(createRestoreDefaultsButton()).strut(10).add(applyButton);
            row.withEmptyBorder(0, 0, 10, 10);
            row.addToParent(panel, BorderLayout.SOUTH);
        }

        private JButton createApplyButton() {
View Full Code Here

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

        BorderLayoutBuilder.from(topPanel, 0, 10).center(messageDisplayer).south(createUpperButtonPanel());
    }
   
    private JComponent createUpperButtonPanel() {
        BoxBuilder b = BoxBuilder.horizontal();
        b.glue();
        if (disposeHandler != null) {
            disposeButton = new KongaButton(disposeHandler);
            b.add(disposeButton).strut(10);
        }
        detailsAction = new DetailsAction();
View Full Code Here

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

        BoxBuilder row = BoxBuilder.horizontal();
        row.add(editButton);
        if (REMOVE_ALL_KEYS_SUPPORTED) {
            row.rigid(10).add(new KongaButton(new RemoveAllKeysAction()));
        }
        row.glue();
        return row;
    }

    private void selectNode(final KongaTreeNode node) {
        EventQueue.invokeLater(new Runnable() {
View Full Code Here

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

   
    private JComponent layoutToolbar() {
        BoxBuilder row = BoxBuilder.horizontal().bottomAligned();
        row.add("The following XSD files will be uploaded to the server:");
        if (SystemUtils.IS_OS_WINDOWS) {
            row.glue().add(openFolderAction);
        }
        return row.container();
    }

    @Override
View Full Code Here

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

        private JComponent createButtons() {
            JButton saveAll = getSaveAllButton();
            JButton saveNone = getSaveNoneButton();
            JButton cancel = getCancelSaveButton();
            BoxBuilder row = BoxBuilder.horizontal();
            row.glue().strut(60).addAllWithSpace(10, saveAll, saveNone, cancel);
            return row.withEmptyBorder(10, 0, 10, 0).container();
        }

        private JButton getSaveAllButton() {
            JButton b = new KongaButton(PackageResources.SavePrompt.SAVE_ALL);
View Full Code Here

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

     *            to -1 will cause the buttons to be centered in the panel.
     */
    public JPanel getButtonPanel(JButton[] buttons, int leftMargin, int horizontalSpace, int rightMargin) {
        BoxBuilder layout = BoxBuilder.horizontal();
        if (leftMargin < 0) {
            layout.glue();
        } else if (leftMargin > 0) {
            layout.strut(leftMargin);
        }
        layout.addAllWithSpace(horizontalSpace, buttons);
        if (rightMargin < 0) {
View Full Code Here

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

        } else if (leftMargin > 0) {
            layout.strut(leftMargin);
        }
        layout.addAllWithSpace(horizontalSpace, buttons);
        if (rightMargin < 0) {
            layout.glue();
        } else if (rightMargin > 0) {
            layout.strut(rightMargin);
        }
        return layout.container();
    }
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.