List of usage examples for com.vaadin.server FontAwesome GROUP
FontAwesome GROUP
To view the source code for com.vaadin.server FontAwesome GROUP.
Click Source Link
From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.MinistryRankingMenuItemFactoryImpl.java
License:Apache License
@Override public void createMinistryRankingTopics(final MenuItem ministryMenuItem) { ministryMenuItem.addItem(OVERVIEW_TEXT, FontAwesome.GROUP, COMMAND18); final MenuItem listByTopic = ministryMenuItem.addItem(RANKING_LIST_BY_TOPIC_TEXT, FontAwesome.GROUP, null); final MenuItem listItem = listByTopic.addItem(POLITICAL_WORK_SUMMARY_TEXT, FontAwesome.GROUP, COMMAND19); listItem.setDescription(CURRENT_AND_PAST_MEMBER_AND_SUMMARY_OF_TOTAL_POLTICIAL_DAYS_MEMBERSHIP_DESCRIPTION); final MenuItem chartByTopic = ministryMenuItem.addItem(CHART_BY_TOPIC_TEXT, FontAwesome.GROUP, null); chartByTopic.addItem(CURRENT_MINISTRIES_CURRENT_MEMBERS_TEXT, FontAwesome.GROUP, COMMAND25); chartByTopic.addItem(CURRENT_PARTIES_ACTIVE_IN_MINISTRIES_HEAD_COUNT_TEXT, FontAwesome.GROUP, COMMAND26); chartByTopic.addItem(ALL_PARTIES_TOTAL_DAYS_SERVED_IN_MINISTRIES_TEXT, FontAwesome.GROUP, COMMAND24); chartByTopic.addItem(ALL_MINISTRIES_TOTAL_MEMBERS_TEXT, FontAwesome.GROUP, COMMAND23); chartByTopic.addItem(GOVERNMENT_BODIES, FontAwesome.GROUP, COMMAND22); chartByTopic.addItem(GOVERNMENT_ROLES_CHART, FontAwesome.GROUP, COMMAND27); ministryMenuItem.addItem(PAGE_VISIT_HISTORY_TEXT, FontAwesome.GROUP, COMMAND21); }
From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.MinistryRankingMenuItemFactoryImpl.java
License:Apache License
@Override public void createOverviewPage(final VerticalLayout panelContent) { final GridLayout grid = createGridLayout(panelContent); createButtonLink(grid, POLITICAL_WORK_SUMMARY_TEXT, FontAwesome.GROUP, COMMAND19, "Default description"); createButtonLink(grid, CURRENT_MINISTRIES_CURRENT_MEMBERS_TEXT, FontAwesome.GROUP, COMMAND25, "Default description"); createButtonLink(grid, CURRENT_PARTIES_ACTIVE_IN_MINISTRIES_HEAD_COUNT_TEXT, FontAwesome.GROUP, COMMAND26, "Default description"); createButtonLink(grid, ALL_PARTIES_TOTAL_DAYS_SERVED_IN_MINISTRIES_TEXT, FontAwesome.GROUP, COMMAND24, "Default description"); createButtonLink(grid, ALL_MINISTRIES_TOTAL_MEMBERS_TEXT, FontAwesome.GROUP, COMMAND23, "Default description"); createButtonLink(grid, GOVERNMENT_BODIES, FontAwesome.GROUP, COMMAND22, "Default description"); createButtonLink(grid, GOVERNMENT_ROLES_CHART, FontAwesome.GROUP, COMMAND27, "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.PartyMenuItemFactoryImpl.java
License:Apache License
@Override public void createPartyMenuBar(final MenuBar menuBar, final String pageId) { initApplicationMenuBar(menuBar);//ww w. j ava 2 s .c om applicationMenuItemFactory.addRankingMenu(menuBar); partyRankingMenuItemFactory .createPartyRankingTopics(menuBar.addItem(PARTY_RANKING, FontAwesome.GROUP, null)); final MenuItem partyItem = menuBar.addItem("Party " + pageId, FontAwesome.GROUP, null); partyItem.addItem(OVERVIEW_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PageMode.OVERVIEW, pageId)); partyItem.addItem(CHARTS_TEXT, null, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PageMode.CHARTS, pageId)); partyItem.addItem(INDICATORS_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PageMode.INDICATORS, pageId)); final MenuItem rolesItem = partyItem.addItem(ROLES_TEXT, FontAwesome.GROUP, null); rolesItem.addItem(CURRENT_LEADERS, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.CURRENTLEADERS.toString(), pageId)); rolesItem.addItem(LEADER_HISTORY, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.LEADERHISTORY.toString(), pageId)); rolesItem.addItem(CURRENT_MEMBERS_TEXT, FontAwesome.GROUP, new PageModeMenuCommand( UserViews.PARTY_VIEW_NAME, PartyPageMode.CURRENTMEMBERS.toString(), pageId)); rolesItem.addItem(MEMBER_HISTORY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.MEMBERHISTORY.toString(), pageId)); rolesItem.addItem(GOVERMENT_ROLES, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.GOVERNMENTROLES.toString(), pageId)); rolesItem.addItem(COMMITTEE_ROLES, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.COMMITTEEROLES.toString(), pageId)); rolesItem.addItem(ROLE_CHART_PARTY_LEADERS, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.ROLEGHANT.toString(), pageId)); final MenuItem documentItem = partyItem.addItem(DOCUMENTS_TEXT, FontAwesome.GROUP, null); documentItem.addItem(DOCUMENT_ACTIVITY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand( UserViews.PARTY_VIEW_NAME, PartyPageMode.DOCUMENTACTIVITY.toString(), pageId)); documentItem.addItem(DOCUMENT_HISTORY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand( UserViews.PARTY_VIEW_NAME, PartyPageMode.DOCUMENTHISTORY.toString(), pageId)); final MenuItem ballotItem = partyItem.addItem(BALLOTS_TEXT, FontAwesome.GROUP, null); ballotItem.addItem(VOTE_HISTORY, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.VOTEHISTORY.toString(), pageId)); ballotItem.addItem(BALLOT_DECISION_SUMMARY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand( UserViews.PARTY_VIEW_NAME, PartyPageMode.COMMITTEEBALLOTDECISIONSUMMARY.toString(), pageId)); ballotItem.addItem(PARTY_WON_DAILY_SUMMARY_CHART, FontAwesome.GROUP, new PageModeMenuCommand( UserViews.PARTY_VIEW_NAME, PartyPageMode.PARTYWONDAILYSUMMARYCHART.toString(), pageId)); partyItem.addItem(PAGE_VISIT_HISTORY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PageMode.PAGEVISITHISTORY, pageId)); }
From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.PartyMenuItemFactoryImpl.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.PARTY_VIEW_NAME, PageMode.OVERVIEW, pageId), "Default description"); createButtonLink(grid, CHARTS_TEXT, null, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PageMode.CHARTS, pageId), "Default description"); createButtonLink(grid, INDICATORS_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PageMode.INDICATORS, pageId), "Default description"); createButtonLink(grid, CURRENT_LEADERS, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.CURRENTLEADERS.toString(), pageId), "Default description"); createButtonLink(grid, LEADER_HISTORY, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.LEADERHISTORY.toString(), pageId), "Default description"); createButtonLink(grid, CURRENT_MEMBERS_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.CURRENTMEMBERS.toString(), pageId), "Default description"); createButtonLink(grid, MEMBER_HISTORY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.MEMBERHISTORY.toString(), pageId), "Default description"); createButtonLink(grid, GOVERMENT_ROLES, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.GOVERNMENTROLES.toString(), pageId),//from ww w. ja v a 2s . c o m "Default description"); createButtonLink(grid, COMMITTEE_ROLES, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.COMMITTEEROLES.toString(), pageId), "Default description"); createButtonLink(grid, ROLE_CHART_PARTY_LEADERS, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.ROLEGHANT.toString(), pageId), "Default description"); createButtonLink(grid, DOCUMENT_ACTIVITY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.DOCUMENTACTIVITY.toString(), pageId), "Default description"); createButtonLink(grid, DOCUMENT_HISTORY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.DOCUMENTHISTORY.toString(), pageId), "Default description"); createButtonLink(grid, VOTE_HISTORY, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.VOTEHISTORY.toString(), pageId), "Default description"); createButtonLink(grid, BALLOT_DECISION_SUMMARY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.COMMITTEEBALLOTDECISIONSUMMARY.toString(), pageId), "Default description"); createButtonLink(grid, PARTY_WON_DAILY_SUMMARY_CHART, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PartyPageMode.PARTYWONDAILYSUMMARYCHART.toString(), pageId), "Default description"); createButtonLink(grid, PAGE_VISIT_HISTORY_TEXT, FontAwesome.GROUP, new PageModeMenuCommand(UserViews.PARTY_VIEW_NAME, PageMode.PAGEVISITHISTORY, pageId), "Default description"); }
From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.PartyRankingMenuItemFactoryImpl.java
License:Apache License
@Override public void createPartyRankingMenuBar(final MenuBar menuBar) { initApplicationMenuBar(menuBar);//from w w w. ja v a 2 s.com applicationMenuItemFactory.addRankingMenu(menuBar); createPartyRankingTopics(menuBar.addItem(PARTY_RANKING, FontAwesome.GROUP, null)); }
From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.PartyRankingMenuItemFactoryImpl.java
License:Apache License
@Override public void createPartyRankingTopics(final MenuItem partynMenuItem) { partynMenuItem.addItem(OVERVIEW_TEXT, FontAwesome.GROUP, COMMAND18); final MenuItem listByTopic = partynMenuItem.addItem(RANKING_LIST_BY_TOPIC_TEXT, FontAwesome.GROUP, null); final MenuItem listItem = listByTopic.addItem(TOTAL_MEMBERS, FontAwesome.GROUP, COMMAND19); listItem.setDescription(PARTY_BY_TOTAL_MEMBERS_BASED_ON_ROLES_IN_DEPARTMENTS_COMMITTEES_AND_PARLIAMENT); final MenuItem chartByTopic = partynMenuItem.addItem(CHART_BY_TOPIC_TEXT, FontAwesome.GROUP, null); chartByTopic.addItem(CURRENT_PARTIES_ACTIVE_IN_MINISTRIES_HEAD_COUNT_TEXT, FontAwesome.GROUP, COMMAND24); // chartByTopic.addItem(CURRENT_PARTIES_TOTAL_DAYS_SERVED_IN_MINISTRIES,FontAwesome.GROUP, // COMMAND20); chartByTopic.addItem(CURRENT_PARTIES_ACTIVE_IN_COMMITTEES_HEAD_COUNT, FontAwesome.GROUP, COMMAND23); // chartByTopic.addItem(CURRENT_PARTIES_ACTIVE_IN_COMMITTEES_CURRENT_ASSIGNMENTS,FontAwesome.GROUP, // COMMAND20); // chartByTopic.addItem(CURRENT_PARTIES_ACTIVE_IN_COMMITTEES_TOTAL_DAYS_SERVED_IN_COMMITTEES,FontAwesome.GROUP, // COMMAND20); chartByTopic.addItem(CURRENT_PARTIES_ACTIVE_IN_PARLIAMENT_HEAD_COUNT, FontAwesome.GROUP, COMMAND25); // chartByTopic.addItem(CURRENT_PARTIES_TOTAL_DAYS_SERVED_IN_PARLIAMENT,FontAwesome.GROUP, // COMMAND20); // chartByTopic.addItem(ALL_PARTIES_HEAD_COUNT_IN_PARLIAMENT,FontAwesome.GROUP, // COMMAND20); chartByTopic.addItem(ALL_PARTIES_TOTAL_DAYS_SERVED_IN_PARLIAMENT, FontAwesome.GROUP, COMMAND22); // chartByTopic.addItem(ALL_PARTIES_TOTAL_DAYS_SERVED_IN_MINISTRIES_TEXT,FontAwesome.GROUP, // COMMAND20); // chartByTopic.addItem(ALL_PARTIES_TOTAL_DAYS_SERVED_IN_COMMITTEES,FontAwesome.GROUP, // COMMAND20); // chartByTopic.addItem(ALL_PARTIES_TOTAL_ASSIGNMENTS_IN_COMMITTEES,FontAwesome.GROUP, // COMMAND20); partynMenuItem.addItem(PAGE_VISIT_HISTORY_TEXT, FontAwesome.GROUP, COMMAND21); }
From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.PartyRankingMenuItemFactoryImpl.java
License:Apache License
@Override public void createOverviewPage(final VerticalLayout panelContent) { final GridLayout grid = createGridLayout(panelContent); createButtonLink(grid, TOTAL_MEMBERS, FontAwesome.GROUP, COMMAND19, "Default description"); createButtonLink(grid, CURRENT_PARTIES_ACTIVE_IN_MINISTRIES_HEAD_COUNT_TEXT, FontAwesome.GROUP, COMMAND24, "Default description"); createButtonLink(grid, CURRENT_PARTIES_ACTIVE_IN_COMMITTEES_HEAD_COUNT, FontAwesome.GROUP, COMMAND23, "Default description"); createButtonLink(grid, CURRENT_PARTIES_ACTIVE_IN_PARLIAMENT_HEAD_COUNT, FontAwesome.GROUP, COMMAND25, "Default description"); createButtonLink(grid, ALL_PARTIES_TOTAL_DAYS_SERVED_IN_PARLIAMENT, 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.PoliticianRankingMenuItemFactoryImpl.java
License:Apache License
@Override public void createPoliticianRankingTopics(final MenuItem politicianMenuItem) { politicianMenuItem.addItem(OVERVIEW_TEXT, FontAwesome.BUG, COMMAND18); final MenuItem listByTopic = politicianMenuItem.addItem(RANKING_LIST_BY_TOPIC_TEXT, FontAwesome.BUG, null); final MenuItem listItem = listByTopic.addItem(POLITICAL_EXPERIENCE_SUMMARY, FontAwesome.BUG, COMMAND19); listItem.setDescription(CURRENT_AND_PAST_ASSIGNMENTS_AND_SUMMARY_EXPERIENCE_IN_DAYS); final MenuItem chartByTopic = politicianMenuItem.addItem(CHART_BY_TOPIC_TEXT, FontAwesome.BUG, null); chartByTopic.addItem(ALL_PARTIES, FontAwesome.GROUP, COMMAND21); chartByTopic.addItem(CURRENT_PARTIES, FontAwesome.GROUP, COMMAND22); politicianMenuItem.addItem(PAGE_VISIT_HISTORY_TEXT, FontAwesome.BUG, COMMAND20); }
From source file:com.hack23.cia.web.impl.ui.application.views.common.pagelinks.impl.PageLinkFactoryImpl.java
License:Apache License
@Override public Link createMinistryRankingViewPageLink() { final Link pageLink = new Link(MINISTRY_RANKING_LINK_TEXT, new ExternalResource(LINK_SEPARATOR + UserViews.MINISTRY_RANKING_VIEW_NAME)); pageLink.setId(ViewAction.VISIT_MINISTRY_RANKING_VIEW.name()); pageLink.setIcon(FontAwesome.GROUP); return pageLink; }
From source file:com.hack23.cia.web.impl.ui.application.views.common.pagelinks.impl.PageLinkFactoryImpl.java
License:Apache License
@Override public Link createCommitteeRankingViewPageLink() { final Link pageLink = new Link(COMMITTEE_RANKING_LINK_TEXT, new ExternalResource(LINK_SEPARATOR + UserViews.COMMITTEE_RANKING_VIEW_NAME)); pageLink.setId(ViewAction.VISIT_COMMITTEE_RANKING_VIEW.name()); pageLink.setIcon(FontAwesome.GROUP); return pageLink; }