Package org.jitterbit.ui.widget.menu

Examples of org.jitterbit.ui.widget.menu.KongaMenuItem


        }
        pm.add(menu);
    }

    private void addTableActionMenuItem(TableAction a, JMenu menu) {
        JMenuItem item = new KongaMenuItem(a);
        ButtonUtils.decorate(item, a.getName());
        menu.add(item);
    }
View Full Code Here


        fileMenu = new FileMenu(openAndSaveManager, this);
        bar.add(fileMenu);

        JMenu searchMenu = new KongaMenu("&Search");
        searchMenu.add(new KongaMenuItem(searchAction));
        bar.add(searchMenu);
        windowsMenu = new WindowsMenu();
        bar.add(windowsMenu);
        return bar;
    }
View Full Code Here

        exitAction = new ExitAction();
        createMenuItems();
    }

    public void createMenuItems() {
        add(new KongaMenuItem(openAction));
        add(new KongaMenuItem(saveAction));
        add(new KongaMenuItem(saveAsAction));
        add(new KongaMenuItem(saveAllAction));
        addSeparator();
        add(new KongaMenuItem(closeAllAction));
        addSeparator();
        List<JMenuItem> liRecentFiles = openAndSaveManager.getRecentFileMenuItems();
        if (liRecentFiles != null && !liRecentFiles.isEmpty()) {
            for (JMenuItem item : liRecentFiles) {
                add(item);
            }
            addSeparator();
        }
        add(new KongaMenuItem(exitAction));
    }
View Full Code Here

     *            a <code>List</code> of the actions to add
     */
    protected final void addActions(MenuContribution contrib, List<? extends Action> actions) {
        for (Action a : actions) {
            if (isActionIncluded(a)) {
                contrib.addItem(new KongaMenuItem(a));
            }
        }
    }
View Full Code Here

    public WindowMenuController(ApplicationWindow appWin) {
        editorService = appWin.getEditorService();
        menuManager = appWin.getMenuManager();
        menuItems = new ArrayList<EditorMenuItem>();
        allWindowsMenuItem = new KongaMenuItem(new ShowOpenPagesDialogAction(appWin));
        quickSwitchMenuItem = new KongaMenuItem(new QuickSwitchEditorAction(appWin));
        topSeparator = new JPopupMenu.Separator();
        bottomSeparator = new JPopupMenu.Separator();
    }
View Full Code Here

        addExtensionItems(items, MenuExtensionPoint.EXTENSION_POINT_1);
        addExtensionItems(items, MenuExtensionPoint.EXTENSION_POINT_2);
        items.add(null);
        addExtensionItems(items, MenuExtensionPoint.EXTENSION_POINT_3);
        items.add(null);
        items.add(new KongaMenuItem(viewLogsAction));
        items.add(new KongaMenuItem(tempFolderConsoleAction));
        items.add(new KongaMenuItem(aboutAction));
        return items;
    }
View Full Code Here

        items.add(new KongaMenuItem(aboutAction));
        return items;
    }

    private static JMenuItem getHelpItem(ActionDictionary ad) {
        JMenuItem helpItem = new KongaMenuItem(ad.getName(ACTION_ID));
        helpItem.setIcon(ad.getSmallIcon(ACTION_ID));
        ApplicationUiHelp.getHelp().enableHelpOnButton(helpItem, "jie.overview");
        return helpItem;
    }
View Full Code Here

    }
   
    @Override
    public final void addToPopupMenu(JPopupMenu pm) {
        if (menuItem == null) {
            menuItem = new KongaMenuItem();
            ButtonUtils.decorate(menuItem, action);
            menuItem.addActionListener(new ActionWrapper());
        }
        menuItem.setEnabled(enabled && action.isEnabled());
        pm.add(menuItem);
View Full Code Here

    }

    @Override
    protected List<JMenuItem> getMenuItems() {
        List<JMenuItem> items = new ArrayList<JMenuItem>();
        items.add(new KongaMenuItem(undo));
        items.add(new KongaMenuItem(redo));
        items.add(null);
        addExtensionItems(items, MenuExtensionPoint.EXTENSION_POINT_1);
        items.add(null);
        items.add(new KongaMenuItem(preferences));
        return items;
    }
View Full Code Here

        items.add(null);
        for (Action a : actions) {
            if (a == null) {
                items.add(null);
            } else {
                items.add(new KongaMenuItem(a));
            }
        }
        addExtensionItems(items, MenuExtensionPoint.EXTENSION_POINT_2);
        items.add(null);
        addExtensionItems(items, MenuExtensionPoint.EXTENSION_POINT_3);
        items.add(null);
        items.add(new KongaMenuItem(exit));
        return items;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.menu.KongaMenuItem

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.