Package org.jitterbit.ui.layout

Examples of org.jitterbit.ui.layout.TwoColumnPanel.addRow()


            TwoColumnPanel grid = createEmptyGrid();
            grid.setInsets(0, 0, 10, 0);
            grid.addRow(fakeInset().asUiProvider(), xsdFileNameField.asUiProvider());
            KongaButton button = new KongaButton(generateXsdAction);
            WizardStyleSheet.SMALL_CAPTION_STYLE.makeOver(button);
            grid.addRow(fakeInset(), InvisiblePanel.newPanel(button));
            grid.setBorder(Empty.border(4, 0, 0, 0));
            layout.addSection("Generate the XSD", grid);
        }

        private void layoutReviewSection() {
View Full Code Here


        grid.addRow(fields, null);
    }

    private JComponent layoutFields() {
        TwoColumnPanel panel = LayoutUtils.getDetailsViewerLayout();
        panel.addRow(nameField.getLabel(), nameField.getInputComponent());
        KongaButton descriptionButton = new KongaButton(descriptionAction);
        descriptionAction.setTrigger(descriptionButton);
        panel.addRow(null, InvisiblePanel.newPanel(descriptionButton));
        panel.setAnchor(Anchor.NORTHWEST).setRightFill(Fill.BOTH).setRightWeights(1.0, 1.0);
        panel.addRow(new JLabel("Members"), BorderLayoutBuilder.fillWith(memberList));
View Full Code Here

    private JComponent layoutFields() {
        TwoColumnPanel panel = LayoutUtils.getDetailsViewerLayout();
        panel.addRow(nameField.getLabel(), nameField.getInputComponent());
        KongaButton descriptionButton = new KongaButton(descriptionAction);
        descriptionAction.setTrigger(descriptionButton);
        panel.addRow(null, InvisiblePanel.newPanel(descriptionButton));
        panel.setAnchor(Anchor.NORTHWEST).setRightFill(Fill.BOTH).setRightWeights(1.0, 1.0);
        panel.addRow(new JLabel("Members"), BorderLayoutBuilder.fillWith(memberList));
        panel.setRightFill(Fill.NONE).setRightWeights(0.0, 0.0);
        BoxBuilder buttons = BoxBuilder.horizontal();
        buttons.setUseSmallSizedIconsForActions(true);
View Full Code Here

        panel.addRow(nameField.getLabel(), nameField.getInputComponent());
        KongaButton descriptionButton = new KongaButton(descriptionAction);
        descriptionAction.setTrigger(descriptionButton);
        panel.addRow(null, InvisiblePanel.newPanel(descriptionButton));
        panel.setAnchor(Anchor.NORTHWEST).setRightFill(Fill.BOTH).setRightWeights(1.0, 1.0);
        panel.addRow(new JLabel("Members"), BorderLayoutBuilder.fillWith(memberList));
        panel.setRightFill(Fill.NONE).setRightWeights(0.0, 0.0);
        BoxBuilder buttons = BoxBuilder.horizontal();
        buttons.setUseSmallSizedIconsForActions(true);
        buttons.addAllWithSpace(10, addMemberAction, removeMemberAction);
        panel.addRow(null, InvisiblePanel.newPanel(buttons));
View Full Code Here

        panel.addRow(new JLabel("Members"), BorderLayoutBuilder.fillWith(memberList));
        panel.setRightFill(Fill.NONE).setRightWeights(0.0, 0.0);
        BoxBuilder buttons = BoxBuilder.horizontal();
        buttons.setUseSmallSizedIconsForActions(true);
        buttons.addAllWithSpace(10, addMemberAction, removeMemberAction);
        panel.addRow(null, InvisiblePanel.newPanel(buttons));
        return new BorderLayoutBuilder().north(panel).container();
    }

    private void applyName() {
        if (group.isRenamable()) {
View Full Code Here

        TwoColumnPanel center = new TwoColumnPanel();
        center.setLeftInsets(0, 0, 0, 10).setRightInsets(0, 0, 0, 0);
        center.setLeftWeights(0.5, 0.0).setRightWeights(0.5, 1.0);
        center.setLeftFill(Fill.HORIZONTAL).setRightFill(Fill.BOTH);
        center.setAnchor(Anchor.NORTHWEST);
        center.addRow(layoutLeftPartOfViewerArea(view.getUsersAndGroupsViewer(), modelActions),
                        view.getDetailsViewer());
        return center;
    }
   
    private UiProvider layoutLeftPartOfViewerArea(UiProvider usersAndGroups, Action[] modelActions) {
View Full Code Here

        blb.center(opSelectorPanel);
        TwoColumnPanel grid = new TwoColumnPanel();
        grid.setLeftFill(Fill.BOTH);
        grid.setRightFill(Fill.BOTH);
        grid.setRightWeights(1.0, 0.0);
        grid.addRow(requestPanel, responsePanel);
        blb.south(grid);
        layout.add(blb, true);
        UiUtils.setOpaqueRecursivelySkipDefaults(getUi(), false);
    }
View Full Code Here

    }

    private JComponent layoutFields() {
        TwoColumnPanel panel = LayoutUtils.getDetailsViewerLayout();
        for (Field f : fields.values()) {
            panel.addRow(f.getLabel(), f.getWidget());
            if (f.getProperty().equals("userName")) {
                layoutPasswordButton(panel);
            }
        }
        panel.setAnchor(Anchor.NORTHWEST);
View Full Code Here

                layoutPasswordButton(panel);
            }
        }
        panel.setAnchor(Anchor.NORTHWEST);
        panel.setRightWeights(1.0, 1.0).setRightFill(Fill.BOTH);
        panel.addRow(new JLabel("Member of"), BorderLayoutBuilder.fillWith(groupList));
        panel.setRightFill(Fill.NONE).setRightWeights(0.0, 0.0);
        BoxBuilder buttons = BoxBuilder.horizontal();
        buttons.setUseSmallSizedIconsForActions(true);
        buttons.addAllWithSpace(10, addToGroupAction, removeFromGroupAction);
        panel.addRow(null, InvisiblePanel.newPanel(buttons));
View Full Code Here

        panel.addRow(new JLabel("Member of"), BorderLayoutBuilder.fillWith(groupList));
        panel.setRightFill(Fill.NONE).setRightWeights(0.0, 0.0);
        BoxBuilder buttons = BoxBuilder.horizontal();
        buttons.setUseSmallSizedIconsForActions(true);
        buttons.addAllWithSpace(10, addToGroupAction, removeFromGroupAction);
        panel.addRow(null, InvisiblePanel.newPanel(buttons));
        return new BorderLayoutBuilder().north(panel).container();
    }

    private void layoutPasswordButton(TwoColumnPanel panel) {
        JButton btn = new KongaButton(passwordAction);
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.