Package org.projectforge.web

Examples of org.projectforge.web.MenuItemDef


    // Register the web part:
    registerWeb(ID, MemoListPage.class, MemoEditPage.class);

    // Register the menu entry as sub menu entry of the misc menu:
    final MenuItemDef parentMenu = getMenuItemDef(MenuItemDefId.MISC);
    registerMenuItem(new MenuItemDef(parentMenu, ID, 10, "plugins.memo.menu", MemoListPage.class));

    // Define the access management:
    registerRight(new MemoRight());

    // All the i18n stuff:
View Full Code Here


    // for SearchPage.
    registerWeb("teamEvent", TeamEventListPage.class, TeamEventEditPage.class, ID, false); // At position after entry.

    addMountPage("teamCalendar", TeamCalCalendarPage.class);
    // Register the menu entry as sub menu entry of the misc menu:
    final MenuItemDef parentMenu = getMenuItemDef(MenuItemDefId.COMMON);
    // registerMenuItem(new MenuItemDef(parentMenu, ID, 7, "plugins.teamcal.menu", TeamCalCalendarPage.class));
    registerMenuItem(new MenuItemDef(parentMenu, ID + "List", 11, "plugins.teamcal.title.list", TeamCalListPage.class));
    final MenuItemDef menuItemDef = MenuItemRegistry.instance().get(MenuItemDefId.CALENDAR);
    menuItemDef.setPageClass(TeamCalCalendarPage.class);
    WicketApplication.setDefaultPage(TeamCalCalendarPage.class);
    // .setMobileMenu(ToDoMobileListPage.class, 10));

    // Define the access management:
    registerRight(new TeamCalRight());
View Full Code Here

    addMountPage("pollEvent", PollEventEditPage.class);
    addMountPage("pollAttendees", PollAttendeePage.class);
    addMountPage("pollResult", PollResultPage.class);
    addMountPage("newPollOverview", NewPollOverviewPage.class);
    // Register the menu entry as sub menu entry of the misc menu:
    final MenuItemDef parentMenu = getMenuItemDef(MenuItemDefId.MISC);
    registerMenuItem(new MenuItemDef(parentMenu, ID, 30, "plugins.poll.menu", PollListPage.class));
    // registerMenuItem(new MenuItemDef(parentMenu, ID + "List", 8, "plugins.teamcal.title.list", TeamCalListPage.class));

    // Define the access management:
    registerRight(new PollRight());
    registerRight(new PollAttendeeRight());
View Full Code Here

    // Register the web part:
    registerWeb(ADDRESS_CAMPAIGN_ID, AddressCampaignListPage.class, AddressCampaignEditPage.class);
    registerWeb(ADDRESS_CAMPAIGN_VALUE_ID, AddressCampaignValueListPage.class, AddressCampaignValueEditPage.class);

    // Register the menu entry as sub menu entry of the misc menu:
    final MenuItemDef parentMenu = getMenuItemDef(MenuItemDefId.MISC);
    registerMenuItem(new MenuItemDef(parentMenu, ADDRESS_CAMPAIGN_ID, 30, "plugins.marketing.addressCampaign.menu",
        AddressCampaignListPage.class));
    registerMenuItem(new MenuItemDef(parentMenu, ADDRESS_CAMPAIGN_VALUE_ID, 30, "plugins.marketing.addressCampaignValue.menu",
        AddressCampaignValueListPage.class));

    // Define the access management:
    registerRight(new AddressCampaignRight());
    registerRight(new AddressCampaignValueRight());
View Full Code Here

    // Register the web part:
    registerWeb(BANK_ACCOUNT_ID, BankAccountListPage.class, BankAccountEditPage.class);
    // registerWeb(BANK_ACCOUNT_BALANCE_ID, BankAccountBalanceListPage.class, BankAccountBalanceEditPage.class);

    // Register the menu entry as sub menu entry of the misc menu:
    final MenuItemDef parentMenu = getMenuItemDef(MenuItemDefId.FIBU);
    registerMenuItem(new MenuItemDef(parentMenu, BANK_ACCOUNT_ID, 100, "plugins.banking.account.menu", BankAccountListPage.class,
        BankAccountDao.USER_RIGHT_ID));
    // registerMenuItem(new MenuItemDef(parentMenu, BANK_ACCOUNT_BALANCE_ID, 30, "plugins.banking.bankAccountBalance.menu",
    // BankAccountBalanceListPage.class));

    // Define the access management:
View Full Code Here

    registerWeb(ID_SKILL, SkillListPage.class, SkillEditPage.class);
    registerWeb(ID_SKILL_TRAINING, TrainingListPage.class, TrainingEditPage.class);
    registerWeb(ID_SKILL_TRAINING_ATTENDEE, TrainingAttendeeListPage.class, TrainingAttendeeEditPage.class);

    // Register the menu entry as sub menu entry of the misc menu:
    final MenuItemDef parentMenu = new MenuItemDef(null, ID_SKILL, 90, I18N_KEY_SKILL_MENU_ENTRY, SkillTreePage.class);

    registerMenuItem(parentMenu);
    registerMenuItem(new MenuItemDef(parentMenu, ID_SKILL_TREE, 5, I18N_KEY_SKILLTREE_MENU_ENTRY, SkillTreePage.class));
    registerMenuItem(new MenuItemDef(parentMenu, ID_SKILL_RATING, 5, I18N_KEY_SKILLRATING_MENU_ENTRY, SkillRatingListPage.class));
    registerMenuItem(new MenuItemDef(parentMenu, ID_SKILL, 5, I18N_KEY_SKILL_MENU_ENTRY, SkillListPage.class));
    registerMenuItem(new MenuItemDef(parentMenu, ID_SKILL_TRAINING, 5, I18N_KEY_SKILLTRAINING_MENU_ENTRY, TrainingListPage.class));
    registerMenuItem(new MenuItemDef(parentMenu, ID_SKILL_TRAINING_ATTENDEE, 5, I18N_KEY_SKILLTRAINING_ATTENDEE_MENU_ENTRY, TrainingAttendeeListPage.class));

    // .setMobileMenu(SkillRatingMobileListPage.class, 10));

    // Define the access management:
    registerRight(new SkillRight());
View Full Code Here

    // Register the web part:
    registerWeb(ID, LicenseListPage.class, LicenseEditPage.class);

    // Register the menu entry as sub menu entry of the misc menu:
    final MenuItemDef parentMenu = getMenuItemDef(MenuItemDefId.MISC);
    registerMenuItem(new MenuItemDef(parentMenu, ID, 10, "plugins.licensemanagement.menu", LicenseListPage.class));

    // Define the access management:
    registerRight(new LicenseManagementRight());

    // All the i18n stuff:
View Full Code Here

    // Register the web part:
    registerWeb(ID, ToDoListPage.class, ToDoEditPage.class, DaoRegistry.ADDRESS, false); // Insert at second position after Address entry (for SearchPage).

    // Register the menu entry as sub menu entry of the misc menu:
    final MenuItemDef parentMenu = getMenuItemDef(MenuItemDefId.MISC);
    registerMenuItem(new ToDoMenuItemDef(parentMenu, ID, 5, "plugins.todo.menu", ToDoListPage.class));
    // .setMobileMenu(ToDoMobileListPage.class, 10));

    // Define the access management:
    registerRight(new ToDoRight());
View Full Code Here

    registerWeb(ID, LiquidityEntryListPage.class, LiquidityEntryEditPage.class, DaoRegistry.ACCOUNTING_RECORD, true);

    addMountPage("liquidityForecast", LiquidityForecastPage.class);

    // Register the menu entry as sub menu entry of the reporting menu:
    final MenuItemDef parentMenu = getMenuItemDef(MenuItemDefId.REPORTING);
    registerMenuItem(new MenuItemDef(parentMenu, ID, 10, "plugins.liquidityplanning.menu", LiquidityEntryListPage.class,
        LiquidityEntryDao.USER_RIGHT_ID, UserRightValue.READONLY, UserRightValue.READWRITE));

    // Define the access management:
    registerRight(new LiquidityPlanningRight());
View Full Code Here

TOP

Related Classes of org.projectforge.web.MenuItemDef

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.