Package org.jitterbit.ui.widget.popup

Examples of org.jitterbit.ui.widget.popup.KongaPopupMenu.addActions()


            List<Action> menuActions = getActionsToIncludeInMenu();
            if (menuActions.isEmpty()) {
                return;
            }
            KongaPopupMenu pm = new KongaPopupMenu();
            pm.addActions(menuActions);
            pm.show(e.getComponent(), e.getX(), e.getY());
        }
       
        private List<Action> getActionsToIncludeInMenu() {
            List<Action> toInclude = Lists.newArrayList();
View Full Code Here


        private void showPopupMenu(MouseEvent e) {
            KongaPopupMenu popup = new KongaPopupMenu();
            popup.add(closeTabAction);
            if (canCloseOthers) {
                popup.addActions(closeOtherTabsAction, closeAllTabsAction);
            }
            if (additionalActions != null) {
                popup.addActions(additionalActions);
            }
            popup.show(e.getComponent(), e.getX(), e.getY());
View Full Code Here

            popup.add(closeTabAction);
            if (canCloseOthers) {
                popup.addActions(closeOtherTabsAction, closeAllTabsAction);
            }
            if (additionalActions != null) {
                popup.addActions(additionalActions);
            }
            popup.show(e.getComponent(), e.getX(), e.getY());
        }

View Full Code Here

    /**
     * Creates the popup menu that will appear when the arrow button is pressed.
     */
    protected JPopupMenu createPopupMenu() {
        KongaPopupMenu menu = new KongaPopupMenu();
        menu.addActions(optionActions);
        registerMenuItemListener(menu);
        return menu;
    }

    protected void registerMenuItemListener(JPopupMenu popupMenu) {
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.