Package org.jitterbit.ui.widget

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


        cols.setWeightX(1.0);
        cols.setWeightY(1.0 / tables.size());
        cols.setInsets(2, 0, 10, 0);
        for (WhereClauseTable t : tables) {
            UiProvider tableUi = t.getUi();
            DropDownPanel ddp = new DropDownPanel(BorderLayoutBuilder.fillWith(tableUi), t.getDbObject().getName(), true);
            ddp.setOpaque(false);
            cols.add(ddp.getDisplayer());
        }
        cols.setOpaque(false, false);
        cols.setBorder(Empty.border(0, 5, 5, 20));
        return cols;
    }
View Full Code Here


        gbc.gridy = 0;
        return gbc;
    }

    private JComponent getDropDownPanel(JPanel panel, String title) {
        DropDownPanel ddp = new DropDownPanel(panel, title, true);
        JComponent displayer = ddp.getDisplayer();
        Box box = Box.createVerticalBox();
        box.add(displayer);
        box.add(Box.createVerticalGlue());
        return box;
    }
View Full Code Here

    private JComponent createDisplayer() {
        BoxBuilder col = BoxBuilder.vertical().leftAligned();
        col.addAllWithSpace(10, layoutEncryptionSection(), layoutOptionsSection());
        col.setBorder(new BorderBuilder().empty(8, 32, 0, 0).titled(null));
        DropDownPanel dropDown = new DropDownPanel(col.container(), Strings.get("Options"), false);
        dropDown.decorateTitle(WizardStyleSheet.MEDIUM_CAPTION_STYLE);
        return dropDown.getDisplayer();
    }
View Full Code Here

    private OneColumnPanel createNewLayout(Collection<SearchParametersDefiner> definers) {
        OneColumnPanel layout = new OneColumnPanel();
        layout.setInsets(0, 0, 20, 0);
        layout.setWeightX(1.0);
        for (SearchParametersDefiner ui : definers) {
            DropDownPanel dropDown = createDropDown(ui, definers.size() == 1);
            layout.add(dropDown.getDisplayer());
        }
        layout.setOpaque(false, true);
        layout.setBorder(Empty.border(10, 0, 0, 0));
        return layout;
    }
View Full Code Here

    public boolean requiresRevalidationOfParent() {
        return true;
    }

    private DropDownPanel createDropDown(final SearchParametersDefiner ui, boolean expanded) {
        final DropDownPanel dropDown = new DropDownPanel(ComponentCanvasFactory.northBorder(ui).getUi(),
                        ui.getClassName(), expanded);
        dropDown.decorateTitle(TextStyles.MediumCaption);
        dropDown.setTitleToolTip(PackageResources.SearchParamsDefiner.getDropDownToopTip(ui.getClassName()));
        dropDown.addChangeListener(new ChangeListener() {

            @Override
            public void stateChanged(ChangeEvent e) {
                if (dropDown.isShowing()) {
                    ui.requestFocus();
                }
            }
        });
        return dropDown;
View Full Code Here

    @Override
    public void decorate(UiCanvas canvas) {
        JComponent pluginSelectorWrapper = BorderLayoutBuilder.fillWith(selector);
        pluginSelectorWrapper.setOpaque(true);
        UiUtils.setPanelBackgrounds(pluginSelectorWrapper, Colors.NEUTRAL_BACKGROUND);
        pluginDropDown = new DropDownPanel(pluginSelectorWrapper, "Plugins (Optional)", false);
        pluginDropDown.setPreferenceStore(ProjectSourceDataFileInputProvider.DISPLAY_PLUGIN_SELECTOR);
        pluginDropDown.setRepackDialogWhenExpansionStateChanges(true);
        pluginDropDown.setTitleToolTip("Expand this control to select one or more plugins to be applied to the source file");
        JComponent displayer = pluginDropDown.getDisplayer();
        displayer.setBorder(Empty.border(0, 10, 0, 0));
View Full Code Here

    private JComponent layoutTree() {
        BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 5);
        layout.north("Dependency graph. An object in the tree depends on the objects under it.").center(cascadeUi);
        layout.setBorder(Empty.border(0, 10, 0, 10));
        DropDownPanel dropDown = new DropDownPanel(BorderLayoutBuilder.fillWith(layout),
                        "&Why are these objects needed?", false);
        dropDown.decorateTitle(WizardStyleSheet.MEDIUM_CAPTION_STYLE);
        JComponent c = dropDown.getDisplayer();
        c.setOpaque(false);
        return c;
    }
View Full Code Here

    }

    private DropDownPanel createDropDown(LoginModel model) {
        JPanel p = createDropDownContent();
        boolean expanded = shouldDropDownBeExpanded(model);
        DropDownPanel dropDown = new DropDownPanel(p, PackageResources.Labels.ADVANCED, expanded);
        decorateTitle(dropDown);
        dropDown.setRepackDialogWhenExpansionStateChanges(true);
        dropDown.setOpaque(false);
        return dropDown;
    }
View Full Code Here

    private void launchPropertySelector() {
        propertiesDialog.show();
    }
   
    private void doLayout() {
        DropDownPanel dd = createDropDown();
        InvisiblePanel.convertAndAdd(getUi(), dd.getDisplayer());
    }
View Full Code Here

        col.setFillOut();
        col.add(new JScrollPane(textArea.getInputComponent()));
        col.setFillNone();
        col.add(new KongaButton(viewPropertiesAction));
        boolean expanded = isSelectorDefinedInOperation();
        DropDownPanel dd = new DropDownPanel(InvisiblePanel.newPanel(col), PackageResources.MessageSelector.TITLE,
                        expanded);
        dd.decorateTitle(TextStyles.SmallBoldCaption);
        dd.setOpaque(false);
        return dd;
    }
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.