List of usage examples for com.vaadin.server FontAwesome MAIL_FORWARD
FontAwesome MAIL_FORWARD
To view the source code for com.vaadin.server FontAwesome MAIL_FORWARD.
Click Source Link
From source file:com.cms.view.ExportContractFromTaxCode.java
private void buildGridButton() { GridManyButton gridManyButton = new GridManyButton(new String[] { Constants.BUTTON_SAVE, Constants.BUTTON_EXPORT, Constants.BUTTON_DETAIL, Constants.BUTTON_DEFAULT }); btnSave = gridManyButton.getBtnCommon().get(0); btnCreateDoc = gridManyButton.getBtnCommon().get(1); btnCreateDoc.setCaption(BundleUtils.getString("common.button.export.word")); btnCreateDoc.setIcon(new ThemeResource(Constants.ICON.DOCX)); btnCreateDoc.setEnabled(false);/*from w ww. j a v a 2 s. c o m*/ btnEmail = gridManyButton.getBtnCommon().get(2); btnEmail.setCaption(BundleUtils.getString("common.button.email")); btnEmail.setIcon(FontAwesome.MAIL_FORWARD); btnExportExcel = gridManyButton.getBtnCommon().get(3); btnExportExcel.setCaption(BundleUtils.getString("common.button.exportFile")); btnExportExcel.setIcon(new ThemeResource(Constants.ICON.EXPORT_EXCEL)); // btnClose = gridManyButton.getBtnCommon().get(4); layoutMain.addComponent(gridManyButton); }
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 w w .ja v a 2 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); } }