Example usage for com.vaadin.server FontAwesome GROUP

List of usage examples for com.vaadin.server FontAwesome GROUP

Introduction

In this page you can find the example usage for com.vaadin.server FontAwesome GROUP.

Prototype

FontAwesome GROUP

To view the source code for com.vaadin.server FontAwesome GROUP.

Click Source Link

Usage

From source file:com.esofthead.mycollab.module.project.view.settings.ProjectRoleAddViewImpl.java

License:Open Source License

@Override
protected Resource initFormIconResource() {
    return FontAwesome.GROUP;
}

From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.AbstractMenuItemFactoryImpl.java

License:Apache License

/**
 * Creates the admin menu.//from  w  ww .  j a  va2 s . c  om
 *
 * @param mainViewItem
 *            the main view item
 */
private static void createAdminMenu(final MenuItem mainViewItem) {
    if (UserContextUtil.allowRoleInSecurityContext(ROLE_ADMIN)) {
        final MenuItem adminMenuItem = mainViewItem.addItem(ADMIN_TEXT, FontAwesome.SERVER, null);

        final MenuItem configurationMenuItem = adminMenuItem.addItem(CONFIGURATION, FontAwesome.GEARS, null);
        configurationMenuItem.addItem(APPLICATION_CONFIGURATION, FontAwesome.GEARS, COMMAND6);

        configurationMenuItem.addItem(AGENCY, FontAwesome.SERVER, COMMAND7);
        configurationMenuItem.addItem(PORTAL, FontAwesome.SITEMAP, COMMAND8);
        configurationMenuItem.addItem(COUNTRY, FontAwesome.FLAG, COMMAND9);
        configurationMenuItem.addItem(LANGUAGE, FontAwesome.LANGUAGE, COMMAND10);
        configurationMenuItem.addItem(LANGUAGE_CONTENT, FontAwesome.FILE_TEXT, COMMAND11);

        final MenuItem managementMenuItem = adminMenuItem.addItem(MANAGEMENT, FontAwesome.SERVER, null);

        managementMenuItem.addItem(AGENT_OPERATIONS_TEXT, FontAwesome.USER_SECRET, COMMAND12);

        managementMenuItem.addItem(DATA_SUMMARY_TEXT, FontAwesome.DATABASE, COMMAND13);

        managementMenuItem.addItem("Email", FontAwesome.MAIL_FORWARD, COMMAND19);

        managementMenuItem.addItem(SYSTEM_PERFORMANCE, FontAwesome.DASHBOARD, COMMAND14);

        final MenuItem userActivityMenuItem = adminMenuItem.addItem(USER_ACTIVITY, FontAwesome.DATABASE, null);
        userActivityMenuItem.addItem(APPLICATION_SESSION, FontAwesome.LAPTOP, COMMAND15);
        userActivityMenuItem.addItem(APPLICATION_EVENT, FontAwesome.ARROWS, COMMAND16);
        userActivityMenuItem.addItem(APPLICATION_EVENT_CHARTS, FontAwesome.ARROWS, COMMAND20);

        userActivityMenuItem.addItem(USERACCOUNT, FontAwesome.GROUP, COMMAND17);

    }
}

From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.ApplicationMenuItemFactoryImpl.java

License:Apache License

@Override
public void addRankingMenu(final MenuBar menuBar) {

    final MenuItem rankingsMenuItem = menuBar.addItem(RANKING_TEXT, FontAwesome.AREA_CHART, null);

    final MenuItem countryMenuItem = rankingsMenuItem.addItem(COUNTRY_RANKING_LINK_TEXT, FontAwesome.FLAG,
            COMMAND7);//from   w  ww  . j  a va2 s. c  o  m

    countryMenuItemFactory.createCountryTopicMenu(countryMenuItem);

    final MenuItem parliamentMenuItem = rankingsMenuItem.addItem(PARLIAMENT_RANKING_LINK_TEXT,
            FontAwesome.INSTITUTION, COMMAND5);

    parliamentMenuItemFactory.createParliamentTopicMenu(parliamentMenuItem);

    final MenuItem politicianMenuItem = rankingsMenuItem.addItem(POLITICIAN_RANKING_LINK_TEXT, FontAwesome.USER,
            COMMAND);

    politicianRankingMenuItemFactory.createPoliticianRankingTopics(politicianMenuItem);

    final MenuItem partynMenuItem = rankingsMenuItem.addItem(PARTY_RANKING_LINK_TEXT, FontAwesome.GROUP,
            COMMAND2);

    partyRankingMenuItemFactory.createPartyRankingTopics(partynMenuItem);

    final MenuItem committeeMenuItem = rankingsMenuItem.addItem(COMMITTEE_RANKING_LINK_TEXT, FontAwesome.GROUP,
            COMMAND3);

    committeeRankingMenuItemFactory.createCommitteeRankingTopics(committeeMenuItem);

    final MenuItem ministryMenuItem = rankingsMenuItem.addItem(MINISTRY_RANKING_LINK_TEXT, FontAwesome.GROUP,
            COMMAND4);

    ministryRankingMenuItemFactory.createMinistryRankingTopics(ministryMenuItem);

}

From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.ApplicationMenuItemFactoryImpl.java

License:Apache License

@Override
public void createOverviewPage(final VerticalLayout panelContent) {
    final GridLayout grid = createGridLayout(panelContent);

    createButtonLink(grid, COUNTRY_RANKING_LINK_TEXT, FontAwesome.FLAG, COMMAND7, "Description");

    createButtonLink(grid, PARLIAMENT_RANKING_LINK_TEXT, FontAwesome.INSTITUTION, COMMAND5, "Description");

    createButtonLink(grid, POLITICIAN_RANKING_LINK_TEXT, FontAwesome.USER, COMMAND, "Description");

    createButtonLink(grid, PARTY_RANKING_LINK_TEXT, FontAwesome.GROUP, COMMAND2, "Description");

    createButtonLink(grid, COMMITTEE_RANKING_LINK_TEXT, FontAwesome.GROUP, COMMAND3, "Description");

    createButtonLink(grid, MINISTRY_RANKING_LINK_TEXT, FontAwesome.GROUP, COMMAND4, "Description");

}

From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.CommitteeMenuItemFactoryImpl.java

License:Apache License

@Override
public void createCommitteeeMenuBar(final MenuBar menuBar, final String pageId) {
    initApplicationMenuBar(menuBar);// w  w w. j  av a2  s .  c  om

    applicationMenuItemFactory.addRankingMenu(menuBar);

    committeeRankingMenuItemFactory
            .createCommitteeRankingTopics(menuBar.addItem(COMMITTEE_RANKING_TEXT, FontAwesome.GROUP, null));

    final MenuItem committeeItem = menuBar.addItem("Committee " + pageId, FontAwesome.GROUP, null);

    committeeItem.addItem(OVERVIEW_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.COMMITTEE_VIEW_NAME, PageMode.OVERVIEW, pageId));
    committeeItem.addItem(CHARTS_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.COMMITTEE_VIEW_NAME, PageMode.CHARTS, pageId));
    committeeItem.addItem(INDICATORS_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.COMMITTEE_VIEW_NAME, PageMode.INDICATORS, pageId));

    final MenuItem rolesItem = committeeItem.addItem(ROLES_TEXT, FontAwesome.GROUP, null);

    rolesItem.addItem(CURRENT_MEMBERS_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(
            UserViews.COMMITTEE_VIEW_NAME, CommitteePageMode.CURRENT_MEMBERS.toString(), pageId));

    rolesItem.addItem(MEMBER_HISTORY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(
            UserViews.COMMITTEE_VIEW_NAME, CommitteePageMode.MEMBERHISTORY.toString(), pageId));

    rolesItem.addItem(ROLE_GHANT_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.COMMITTEE_VIEW_NAME,
            CommitteePageMode.ROLEGHANT.toString(), pageId));

    final MenuItem documentItem = committeeItem.addItem(DOCUMENTS_TEXT, FontAwesome.GROUP, null);

    documentItem.addItem(DOCUMENT_ACTIVITY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(
            UserViews.COMMITTEE_VIEW_NAME, CommitteePageMode.DOCUMENTACTIVITY.toString(), pageId));

    documentItem.addItem(DOCUMENT_HISTORY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(
            UserViews.COMMITTEE_VIEW_NAME, CommitteePageMode.DOCUMENT_HISTORY.toString(), pageId));

    final MenuItem ballotItem = committeeItem.addItem(BALLOTS_TEXT, FontAwesome.GROUP, null);

    ballotItem.addItem(BALLOT_DECISION_SUMMARY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(
            UserViews.COMMITTEE_VIEW_NAME, CommitteePageMode.BALLOTDECISIONSUMMARY.toString(), pageId));

    ballotItem.addItem(DECISION_SUMMARY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(
            UserViews.COMMITTEE_VIEW_NAME, CommitteePageMode.DECISIONSUMMARY.toString(), pageId));

    ballotItem.addItem(DECISION_TYPE_DAILY_SUMMARY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(
            UserViews.COMMITTEE_VIEW_NAME, CommitteePageMode.DECISIONTYPEDAILYSUMMARY.toString(), pageId));

    committeeItem.addItem(PAGE_VISIT_HISTORY_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.COMMITTEE_VIEW_NAME, PageMode.PAGEVISITHISTORY, pageId));

}

From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.CommitteeMenuItemFactoryImpl.java

License:Apache License

@Override
public void createOverviewPage(final VerticalLayout panelContent, final String pageId) {
    final GridLayout grid = createGridLayout(panelContent);

    createButtonLink(grid, OVERVIEW_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.COMMITTEE_VIEW_NAME, PageMode.OVERVIEW, pageId),
            "Default description");
    createButtonLink(grid, CHARTS_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.COMMITTEE_VIEW_NAME, PageMode.CHARTS, pageId),
            "Default description");
    createButtonLink(grid, INDICATORS_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.COMMITTEE_VIEW_NAME, PageMode.INDICATORS, pageId),
            "Default description");

    createButtonLink(grid, CURRENT_MEMBERS_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.COMMITTEE_VIEW_NAME, CommitteePageMode.CURRENT_MEMBERS.toString(),
                    pageId),/* www .ja  v  a  2s .c o  m*/
            "Default description");

    createButtonLink(grid, MEMBER_HISTORY_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.COMMITTEE_VIEW_NAME, CommitteePageMode.MEMBERHISTORY.toString(),
                    pageId),
            "Default description");

    createButtonLink(grid, ROLE_GHANT_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.COMMITTEE_VIEW_NAME, CommitteePageMode.ROLEGHANT.toString(),
                    pageId),
            "Default description");

    createButtonLink(grid, DOCUMENT_ACTIVITY_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.COMMITTEE_VIEW_NAME,
                    CommitteePageMode.DOCUMENTACTIVITY.toString(), pageId),
            "Default description");

    createButtonLink(grid, DOCUMENT_HISTORY_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.COMMITTEE_VIEW_NAME,
                    CommitteePageMode.DOCUMENT_HISTORY.toString(), pageId),
            "Default description");

    createButtonLink(grid, BALLOT_DECISION_SUMMARY_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.COMMITTEE_VIEW_NAME,
                    CommitteePageMode.BALLOTDECISIONSUMMARY.toString(), pageId),
            "Default description");

    createButtonLink(grid, DECISION_SUMMARY_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.COMMITTEE_VIEW_NAME, CommitteePageMode.DECISIONSUMMARY.toString(),
                    pageId),
            "Default description");

    createButtonLink(grid, DECISION_TYPE_DAILY_SUMMARY_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.COMMITTEE_VIEW_NAME,
                    CommitteePageMode.DECISIONTYPEDAILYSUMMARY.toString(), pageId),
            "Default description");

    createButtonLink(grid, PAGE_VISIT_HISTORY_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.COMMITTEE_VIEW_NAME, PageMode.PAGEVISITHISTORY, pageId),
            "Default description");

}

From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.CommitteeRankingMenuItemFactoryImpl.java

License:Apache License

@Override
public void createCommitteeRankingTopics(final MenuItem committeeMenuItem) {
    committeeMenuItem.addItem(OVERVIEW_TEXT, FontAwesome.GROUP, COMMAND19);

    final MenuItem listByTopic = committeeMenuItem.addItem(RANKING_LIST_BY_TOPIC_TEXT, FontAwesome.GROUP, null);

    final MenuItem listItem = listByTopic.addItem(POLITICAL_WORK_SUMMARY_TEXT, FontAwesome.GROUP, COMMAND18);
    listItem.setDescription(CURRENT_AND_PAST_MEMBER_AND_SUMMARY_OF_POLTICIAL_DAYS);

    final MenuItem chartByTopic = committeeMenuItem.addItem(CHART_BY_TOPIC_TEXT, FontAwesome.GROUP, null);

    chartByTopic.addItem(CURRENT_COMMITTEES_CURRENT_MEMBERS_TEXT, FontAwesome.GROUP, COMMAND24);
    //chartByTopic.addItem(CURRENT_PARTIES_ACTIVE_IN_COMMITTEES_HEAD_COUNT,FontAwesome.GROUP, COMMAND20);
    chartByTopic.addItem(CURRENT_PARTIES_ACTIVE_IN_COMMITTEES_CURRENT_ASSIGNMENTS, FontAwesome.GROUP,
            COMMAND23);//from   ww  w.  j a v  a 2 s. com
    chartByTopic.addItem(CURRENT_PARTIES_ACTIVE_IN_COMMITTEES_TOTAL_DAYS_SERVED_IN_COMMITTEES,
            FontAwesome.GROUP, COMMAND25);

    //chartByTopic.addItem(ALL_PARTIES_TOTAL_DAYS_SERVED_IN_COMMITTEES,FontAwesome.GROUP, COMMAND20);
    //chartByTopic.addItem(ALL_PARTIES_TOTAL_ASSIGNMENTS,FontAwesome.GROUP, COMMAND20);

    chartByTopic.addItem(ALL_COMMITTEES_TOTAL_MEMBERS, FontAwesome.GROUP, COMMAND22);
    //chartByTopic.addItem(ALL_COMMITTEES_TOTAL_DAYS_SERVED_IN_COMMITTEES,FontAwesome.GROUP, COMMAND20);

    committeeMenuItem.addItem(PAGE_VISIT_HISTORY_TEXT, FontAwesome.GROUP, COMMAND21);

}

From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.CommitteeRankingMenuItemFactoryImpl.java

License:Apache License

@Override
public void createOverviewPage(final VerticalLayout panelContent) {
    final GridLayout grid = createGridLayout(panelContent);

    createButtonLink(grid, POLITICAL_WORK_SUMMARY_TEXT, FontAwesome.GROUP, COMMAND18, "Default description");
    createButtonLink(grid, CURRENT_COMMITTEES_CURRENT_MEMBERS_TEXT, FontAwesome.GROUP, COMMAND24,
            "Default description");

    createButtonLink(grid, CURRENT_PARTIES_ACTIVE_IN_COMMITTEES_CURRENT_ASSIGNMENTS, FontAwesome.GROUP,
            COMMAND23, "Default description");
    createButtonLink(grid, CURRENT_PARTIES_ACTIVE_IN_COMMITTEES_TOTAL_DAYS_SERVED_IN_COMMITTEES,
            FontAwesome.GROUP, COMMAND25, "Default description");
    createButtonLink(grid, ALL_COMMITTEES_TOTAL_MEMBERS, FontAwesome.GROUP, COMMAND22, "Default description");

    createButtonLink(grid, PAGE_VISIT_HISTORY_TEXT, FontAwesome.GROUP, COMMAND21, "Default description");

}

From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.MinistryMenuItemFactoryImpl.java

License:Apache License

@Override
public void createMinistryMenuBar(final MenuBar menuBar, final String pageId) {
    initApplicationMenuBar(menuBar);//from  w ww  .  j a v a  2 s. c  o m

    applicationMenuItemFactory.addRankingMenu(menuBar);

    ministryRankingMenuItemFactory
            .createMinistryRankingTopics(menuBar.addItem(MINISTRY_RANKING, FontAwesome.GROUP, null));

    final MenuItem ministryItem = menuBar.addItem("Ministry " + pageId, FontAwesome.GROUP, null);

    ministryItem.addItem(OVERVIEW_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, PageMode.OVERVIEW, pageId));
    ministryItem.addItem(CHARTS_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, PageMode.CHARTS, pageId));
    ministryItem.addItem(INDICATORS_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, PageMode.INDICATORS, pageId));

    final MenuItem rolesItem = ministryItem.addItem(ROLES_TEXT, FontAwesome.GROUP, null);

    rolesItem.addItem(CURRENT_MEMBERS_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(
            UserViews.MINISTRY_VIEW_NAME, MinistryPageMode.CURRENTMEMBERS.toString(), pageId));

    rolesItem.addItem(MEMBER_HISTORY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(
            UserViews.MINISTRY_VIEW_NAME, MinistryPageMode.MEMBERHISTORY.toString(), pageId));

    rolesItem.addItem(ROLE_GHANT_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME,
            MinistryPageMode.ROLEGHANT.toString(), pageId));

    rolesItem.addItem(GOVERNMENT_BODIES, FontAwesome.GROUP, new PageModeMenuCommand(
            UserViews.MINISTRY_VIEW_NAME, MinistryPageMode.GOVERNMENT_BODIES.toString(), pageId));

    final MenuItem documentItem = ministryItem.addItem(DOCUMENTS_TEXT, FontAwesome.GROUP, null);

    documentItem.addItem(DOCUMENT_ACTIVITY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(
            UserViews.MINISTRY_VIEW_NAME, MinistryPageMode.DOCUMENTACTIVITY.toString(), pageId));

    documentItem.addItem(DOCUMENT_HISTORY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(
            UserViews.MINISTRY_VIEW_NAME, MinistryPageMode.DOCUMENTHISTORY.toString(), pageId));

    ministryItem.addItem(PAGE_VISIT_HISTORY_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, PageMode.PAGEVISITHISTORY, pageId));

}

From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.MinistryMenuItemFactoryImpl.java

License:Apache License

@Override
public void createOverviewPage(final VerticalLayout panelContent, final String pageId) {
    final GridLayout grid = createGridLayout(panelContent);

    createButtonLink(grid, OVERVIEW_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, PageMode.OVERVIEW, pageId),
            "Default description");
    createButtonLink(grid, CHARTS_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, PageMode.CHARTS, pageId),
            "Default description");
    createButtonLink(grid, INDICATORS_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, PageMode.INDICATORS, pageId),
            "Default description");

    createButtonLink(grid, CURRENT_MEMBERS_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, MinistryPageMode.CURRENTMEMBERS.toString(),
                    pageId),/*  w  ww  .ja  v  a  2s . c  o m*/
            "Default description");

    createButtonLink(grid, MEMBER_HISTORY_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, MinistryPageMode.MEMBERHISTORY.toString(),
                    pageId),
            "Default description");

    createButtonLink(grid, ROLE_GHANT_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, MinistryPageMode.ROLEGHANT.toString(),
                    pageId),
            "Default description");

    createButtonLink(grid, GOVERNMENT_BODIES, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, MinistryPageMode.GOVERNMENT_BODIES.toString(),
                    pageId),
            "Default description");

    createButtonLink(grid, DOCUMENT_ACTIVITY_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, MinistryPageMode.DOCUMENTACTIVITY.toString(),
                    pageId),
            "Default description");

    createButtonLink(grid, DOCUMENT_HISTORY_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, MinistryPageMode.DOCUMENTHISTORY.toString(),
                    pageId),
            "Default description");

    createButtonLink(grid, PAGE_VISIT_HISTORY_TEXT, FontAwesome.GROUP,
            new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, PageMode.PAGEVISITHISTORY, pageId),
            "Default description");

}