Package org.jitterbit.ui.layout

Examples of org.jitterbit.ui.layout.BoxBuilder


        updateValueField();
    }

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


        cols.setBorder(StyleSheet.getDefaultTitleBorder(TreeStrings.get("Search.Mappings.Found.Title")));
        return cols;
    }

    private JComponent layoutTargetField() {
        BoxBuilder row = BoxBuilder.horizontal();
        return row.addAllWithSpace(10, targetField, openMappingAction).container();
    }
View Full Code Here

        EntityFilter filter = EntityFilters.and(EntityFilters.allOfType(EntityType.Document), new NonWizardObjectsFilter());
        return new TreeWidget<TextDocument>(explorer, EntityType.Document, TextDocument.class, filter, false);
    }

    private JPanel createFactoryPanel(String caption) {
        BoxBuilder row = BoxBuilder.horizontal();
        row.addAllWithSpace(10, caption, new AutoCreateStructureAction());
        row.setOpaque(false);
        row.setBorder(StyleSheet.getDefaultTitleBorder("Auto-Create Text Structure"));
        return row.container();
    }
View Full Code Here

    }

    private JComponent createDialogButtons() {
        JButton ok = dialog.createOKButton();
        JButton cancel = dialog.createCancelButton();
        BoxBuilder row = BoxBuilder.horizontal();
        KongaButton testButton = createTestButton();
        row.add(clientHelpButton).strut(10).add(testButton).glue().addAllWithSpace(10, ok, cancel);
        // HACK for bug 1978511:
        int rightBorder = SystemUtils.IS_OS_WINDOWS_VISTA ? 0 : 1;
        return row.withEmptyBorder(10, 0, 10, rightBorder).container();
    }
View Full Code Here

            caption.setBorder(Empty.border(2, 0, 2, 0));
            col.add(caption);
        }

        private void layoutControlRow() {
            BoxBuilder row = BoxBuilder.horizontal();
            row.add(typeSelector).glue();
            if (refreshAction != null) {
                row.add(refreshAction);
            }
            col.add(row);
        }
View Full Code Here

    }
   
    private void createContentPane(KongaDialog dlg) {
        Operation op = opNode.getDataObject().getActivity();
        HostedWebServiceUrlWidget w = new HostedWebServiceUrlWidget(op.getID());
        BoxBuilder bottom = BoxBuilder.horizontal();
        bottom.add(w.getCopyToClipboardButton()).glue().add(dlg.createCloseButton()).withEmptyBorder(20, 0, 0, 0);
        BorderLayoutBuilder cp = new BorderLayoutBuilder();
        cp.north(w).south(bottom);
        cp.setBorder(Empty.border(10));
        cp.asContentPaneFor(dlg);
        dlg.setFocusedComponent(w);
View Full Code Here

        layout.decorate(canvas);
        selectNode(treeModel.getRoot().getChildAt(0));
    }

    private UiProvider layoutButtons() {
        BoxBuilder row = BoxBuilder.horizontal();
        row.add(editButton);
        if (REMOVE_ALL_KEYS_SUPPORTED) {
            row.rigid(10).add(new KongaButton(new RemoveAllKeysAction()));
        }
        row.glue();
        return row;
    }
View Full Code Here

        ui.northToSouth(getTitlePanel(), resultTable, layoutSouthPart());
        BorderLayoutBuilder.from(view).center(ui);
    }

    private JComponent layoutSouthPart() {
        BoxBuilder south = BoxBuilder.horizontal().setOpaque(false);
        south.addAllWithSpace(10, failedConnectionsSwitch, retestAction);
        return south.container();
    }
View Full Code Here

            col.setOpaque(false, true);
            cp.center(col);
        }

        private void layoutTableButtons(OneColumnPanel parent, InvalidMappingsTable table) {
            final BoxBuilder row = BoxBuilder.horizontal();
            JLabel caption = new JLabel(TreeStrings.get("InvalidMappings.Dialog.Caption"));
            row.add(caption).glue();
            table.populate(new ActionContainer() {

                private boolean first = true;

                @Override
                public void add(Action a) {
                    if (!first) {
                        row.strut(10);
                    }
                    row.add(new KongaButton(a));
                    first = false;
                }

                @Override
                public void remove(Action a) {
View Full Code Here

            layoutControls();
            layoutTree();
        }

        private void layoutControls() {
            BoxBuilder north = BoxBuilder.horizontal();
            KongaButton join = new KongaButton(addRelationAction);
            join.setIconTextGap(8);
            north.addAllWithSpace(10, parentChildSelector, join);
            layout.north(north);
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.layout.BoxBuilder

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.