Package com.jgoodies.uif.builder

Examples of com.jgoodies.uif.builder.MenuBuilder


     *
     * @return created menu.
     */
    private JMenu buildDatabaseSubmenu()
    {
        MenuBuilder bld = createBuilder("tools.database");
        JMenu menu = bld.getMenu();

        menu.add(ActionManager.get(ActionsTable.CMD_BB_DATABASE_COMPACT));
        menu.add(ActionManager.get(ActionsTable.CMD_BB_DATABASE_BACKUP));

        return bld.getMenu();
    }
View Full Code Here


     *
     * @return created menu.
     */
    private JMenu buildSettingsSubmenu()
    {
        MenuBuilder bld = createBuilder("tools.settings");
        JMenu menu = bld.getMenu();

        menu.add(ActionManager.get(ActionsTable.CMD_BB_BLOGSTARZ));
        menu.add(ActionManager.get(ActionsTable.CMD_BB_PLUGIN_MANAGER));
        menu.add(ActionManager.get(ActionsTable.CMD_BB_IMAGE_BLOCKER));
        menu.add(ActionManager.get(ActionsTable.CMD_BB_SENTIMENT_ANALYSIS));

        // On a Mac, the Preferences and Exit commands are on the Application
        // menu not here.
        if (!SystemUtils.IS_OS_MAC)
        {
            menu.add(ActionManager.get(ActionsTable.CMD_BB_PREFERENCES));
        }

        return bld.getMenu();
    }
View Full Code Here

     *
     * @return the created menu.
     */
    private JMenu buildHelpMenu()
    {
        MenuBuilder bld = createBuilder("help");
        JMenu menu = bld.getMenu();
/*
        menu.add(ActionManager.get(ActionsTable.CMD_OPEN_HELP));
*/
        menu.add(ActionManager.get(ActionsTable.CMD_BB_FAQ));
        menu.add(ActionManager.get(ActionsTable.CMD_BB_HOME));
        menu.add(ActionManager.get(ActionsTable.CMD_BB_SEND_FEEDBACK));
        menu.add(ActionManager.get(ActionsTable.CMD_BB_TIP_OF_THE_DAY));
        menu.add(ActionManager.get(ActionsTable.CMD_BB_KEYBOARD_SHORTCUTS));

        if (!SystemUtils.IS_OS_MAC)
        {
            menu.add(ActionManager.get(ActionsTable.CMD_BB_ABOUT));
        }

        return bld.getMenu();
    }
View Full Code Here

TOP

Related Classes of com.jgoodies.uif.builder.MenuBuilder

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.