List of usage examples for com.vaadin.server FontAwesome AREA_CHART
FontAwesome AREA_CHART
To view the source code for com.vaadin.server FontAwesome AREA_CHART.
Click Source Link
From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.AbstractMenuItemFactoryImpl.java
License:Apache License
/** * Inits the application menu bar./* w w w .j a va2 s. c om*/ * * @param menuBar * the menu bar */ protected final void initApplicationMenuBar(final MenuBar menuBar) { menuBar.removeItems(); menuBar.setWidth("80%"); menuBar.setStyleName("Header"); final MenuItem mainViewItem = menuBar.addItem("Application", FontAwesome.SERVER, null); mainViewItem.addItem(START_TEXT, FontAwesome.STAR, COMMAND); final MenuItem mainItem = mainViewItem.addItem("Main", FontAwesome.STAR, null); mainItem.addItem(PAGE_VISIT_HISTORY_TEXT, FontAwesome.AREA_CHART, COMMAND18); if (UserContextUtil.allowRoleInSecurityContext(ROLE_ADMIN) || UserContextUtil.allowRoleInSecurityContext(ROLE_USER)) { mainViewItem.addItem(USERHOME, FontAwesome.USER, COMMAND2); createAdminMenu(mainViewItem); mainViewItem.addItem("Logout", FontAwesome.SIGN_OUT, COMMAND3); } else { mainViewItem.addItem("Login", FontAwesome.SIGN_IN, COMMAND4); mainViewItem.addItem("Register", FontAwesome.USER_PLUS, COMMAND5); } }
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 w w. ja v a 2s . c om 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); }