List of usage examples for com.vaadin.server FontAwesome LAPTOP
FontAwesome LAPTOP
To view the source code for com.vaadin.server FontAwesome LAPTOP.
Click Source Link
From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.AbstractMenuItemFactoryImpl.java
License:Apache License
/** * Creates the admin menu.// w ww.j a v a 2 s . c o m * * @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); } }