Package org.jitterbit.ui.widget

Examples of org.jitterbit.ui.widget.DropDownPanel$Displayer


    private void doLayout() {
        OneColumnPanel col = new OneColumnPanel();
        col.setInsets(0, 0, 20, 0);
        layoutTopPart(col);
        DropDownPanel success = createDropDownPanel(onSuccessPanel,
                        Strings.get("ExpandedOptions.OnSuccess"), GraphResources.SUCCESS_24, true);
        col.add(success.getDisplayer());
        DropDownPanel failure = createDropDownPanel(onFailurePanel,
                        Strings.get("ExpandedOptions.OnFailure"), GraphResources.FAILURE_24, true);
        col.add(failure.getDisplayer());
        DropDownPanel schedule = createDropDownPanel(schedulePanel, Strings.get("ExpandedOptions.Schedule"),
                        EntityIcons.forType(EntityType.Schedule).getDefaultIcon(Size.MEDIUM), false);
        checkSchedulable(schedule);
        col.add(schedule.getDisplayer());
        DropDownPanel options = createDropDownPanel(optionsPanel, Strings.get("ExpandedOptions.Options"),
                        ClientIcons.getIcon("Options.24"), false);
        col.add(options.getDisplayer());
        panel.wrap(col);
        panel.setBorder(new BorderBuilder().etched().empty(10));
    }
View Full Code Here


        }
    }

    private DropDownPanel createDropDownPanel(InputPanel content, String title, Icon icon, boolean expanded) {
        content.getUi().setBorder(Empty.border(0, 25, 0, 0));
        DropDownPanel ddp = new DropDownPanel(content.getUi(), title, expanded);
        ddp.setTitleIcon(icon);
        ddp.setOpaque(false);
        return ddp;
    }
View Full Code Here

        String title = getString("Label.Duration");
        layoutDropDownPanel(parent, durationPanel.getUi(), title);
    }

    private void layoutDropDownPanel(Layout parent, JComponent contents, String title) {
        DropDownPanel ddp = new DropDownPanel(contents, title, false);
        JComponent disp = ddp.getDisplayer();
        parent.add(disp);
    }
View Full Code Here

    private JComponent createDisplayer() {
        JComponent p = BorderLayoutBuilder.fillWith(table);
        UiUtils.setOpaqueRecursivelySkipDefaults(p, false);
        boolean expanded = table.getNumberOfDisplayedProperties() > 0;
        DropDownPanel ddp = new DropDownPanel(p, PackageResources.UserDefinedProperties.TITLE, expanded);
        return ddp.getDisplayer();
    }
View Full Code Here

*/
public final class DataLocationPanelUtils {

    public static DropDownPanel createOptionsDropDown(JComponent ui, boolean expanded) {
        ui.setBorder(Empty.border(5, 25, 0, 0));
        DropDownPanel dropDown = new DropDownPanel(ui, getString("Optional"), expanded);
        return dropDown;
    }
View Full Code Here

        col.add(getTypeSelectorCapsule());
        col.add(selectorArea.getDisplayer());
        JPanel p = InvisiblePanel.newPanel();
        col.addToParent(p, null);
        p.setBorder(Empty.border(5, 20, 0, 0));
        DropDownPanel ddp = new DropDownPanel(p, PackageResources.PayloadStructureDefiner.TITLE, true);
        return ddp.getDisplayer();
    }
View Full Code Here

        protected final JComponent layoutOptionalFields() {
            UiProvider optional = getOptionalControls();
            JComponent ui = new BorderLayoutBuilder().north(optional).container();
            ui.setBorder(Empty.border(0, 15, 0, 0));
            InterchangeViewUtils.configurePropertyFields(ui);
            DropDownPanel dropDown = new DropDownPanel(ui, "&Options", false);
            return dropDown.getDisplayer();
        }
View Full Code Here

        p.add(afterProcessingPanel.getUi());
        p.setFillNone();
        p.add(ignoreLinesPanel.getUi());
        JComponent ui = new BorderLayoutBuilder().north(p).container();
        InterchangeViewUtils.configurePropertyFields(ui);
        DropDownPanel dropDown = DataLocationPanelUtils.createOptionsDropDown(ui, false);
        return dropDown.getDisplayer();
    }
View Full Code Here

        p.addActionListener(lst);
        return p;
    }

    private DropDownPanel createTypeSelectorDropdown() {
        DropDownPanel ddp = new DropDownPanel(
                entityTypePanel.getDisplayer(), getString("Search.TypeDropDown.Title"), false);
        ddp.addChangeListener(new ChangeListener() {

            @Override
            public void stateChanged(ChangeEvent e) {
                Window w = SwingUtilities.getWindowAncestor(displayer);
                if (w instanceof JDialog) {
                    w.pack();
                }
            }
        });
        ddp.setTitleFont(TextStyles.AdminHint.getFont());
        return ddp;
    }
View Full Code Here

        col.add(lifeTimeDefiner);
        JPanel p = InvisiblePanel.newPanel();
        col.addToParent(p, null);
        UiUtils.setOpaqueRecursivelySkipDefaults(p, false);
        p.setBorder(Empty.border(5, 20, 0, 0));
        DropDownPanel ddp = new DropDownPanel(p, PackageResources.TargetProperties.TITLE, false);
        return ddp.getDisplayer();
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.DropDownPanel$Displayer

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.