Examples of PopupMenuButton


Examples of org.jitterbit.ui.widget.button.PopupMenuButton

    public NodeVisibilityOptionsMenuBuilder(TreeMapper treeMapper) {
        this.treeMapper = treeMapper;
    }

    public PopupMenuButton buttonForSourceTree() {
        PopupMenuButton b = new PopupMenuButton(null, ICON, buildForSourceTree());
        b.setToolTipText("Options for hiding nodes in the source tree");
        return b;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.button.PopupMenuButton

        a.setTree(tree);
        return a;
    }

    public PopupMenuButton buttonForTargetTree() {
        PopupMenuButton b = new PopupMenuButton(null, ICON, buildForTargetTree());
        b.setToolTipText("Options for hiding nodes in the target tree");
        return b;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.button.PopupMenuButton

        impl.addAdditionalToolbarButtons(buttons);
    }

    private JButton toolkitButton(TransformationPage page) {
        JPopupMenu popup = createToolkitPopupMenu(page);
        final PopupMenuButton toolkit = new PopupMenuButton("", getToolkitIcon(), popup);
        // HACK: If we don't dispose the toolkit button when the page is closed the page is never
        // garbage collected. This shouldn't be necessary, and we should look into what causes this.
        page.addResource(new AbstractWindowElementResource() {

            @Override
            public void dispose(WindowElement e) {
                toolkit.dispose();
            }
        });
        toolkit.setToolTipText(Strings.get("Page.AdvancedMenu.ToolTip"));
        return ButtonUtils.configureButtonForToolBar(toolkit);
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.button.PopupMenuButton

                List<JButton> buttons = Lists.newArrayList();
                buttons.add(new KongaButton(transferAction).makeToolbarButton());
                if (allowBuiltInVariablesToBeHidden) {
                    ToggleAction showReferencedDEs = new IncludeBuiltInDataElementsToggle(
                                    ShowReferencedDataElementsOnlyPreference.INSTANCE);
                    PopupMenuButton pm = new PopupMenuButton(ApplicationResources.ICONS.getIcon("ArrowDown.16"),
                                    new Action[] { showReferencedDEs });
                    buttons.add(pm);
                }
                return buttons.toArray(new JButton[buttons.size()]);
            }
View Full Code Here

Examples of org.jitterbit.ui.widget.button.PopupMenuButton

        s.append("]");
        return s.toString();
    }

    private static PopupMenuButton createDropDownMenuButton(JPopupMenu pm) {
        PopupMenuButton b = new PopupMenuButton("", ApplicationResources.ICONS.getIcon("ArrowDown.16"), pm); //$NON-NLS-1$ //$NON-NLS-2$
        b.setToolTipText(ApplicationResources.STRINGS.getString("Menu"));
        b.setOpaque(false);
        ButtonUtils.enableRolloverForButton(b);
        return b;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.button.PopupMenuButton

        this.callback = callback;
    }

    @Override
    public void decorate(UiCanvas canvas) {
        PopupMenuButton button = createButton();
        BoxBuilder row = BoxBuilder.horizontal();
        row.addAll("Column display order: ", button);
        row.decorate(canvas);
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.button.PopupMenuButton

    private PopupMenuButton createButton() {
        JPopupMenu menu = new JPopupMenu();
        menu.add(database);
        menu.add(alphabetical);
        PopupMenuButton button = new PopupMenuButton(null, ApplicationResources.ICONS.getIcon("ArrowDown.16"), menu);
        return ButtonUtils.configureButtonForToolBar(button);
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.button.PopupMenuButton

        cb.setMaximumRowCount(20);
        return cb;
    }

    private PopupMenuButton createControlButton() {
        PopupMenuButton b = new PopupMenuButton(new Action[] { editAction, createNewAction });
        b.setText("...");
        return b;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.button.PopupMenuButton

        ActionKeyBinding.install(new KeyDownAction(), label);
        ActionKeyBinding.install(new ShowContextMenuAction(), label);
    }

    private PopupMenuButton createDropDownButton() {
        PopupMenuButton b = new PopupMenuButton(
                        "",
                        ApplicationResources.ICONS.getIcon("ArrowDown.16"),
                        createDropDownActions(),
                        PopupMenuActionPopulators.DEFAULT);
        b.setToolTipText(ApplicationResources.STRINGS.getString("Options"));
        ButtonUtils.configureButtonForToolBar(b);
        return b;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.button.PopupMenuButton

        opaque = true;
        customizeTree();
    }

    private PopupMenuButton createPopupMenuButton() {
        PopupMenuButton b = new PopupMenuButton(
                        "",
                        ApplicationResources.ICONS.getIcon("ArrowDown.16"),
                        new Action[0],
                        PopupMenuActionPopulators.DEFAULT);
        b.setToolTipText(ApplicationResources.STRINGS.getString("Menu"));
        ButtonUtils.configureButtonForToolBar(b);
        return b;
    }
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.