List of usage examples for com.vaadin.server FontAwesome USER_PLUS
FontAwesome USER_PLUS
To view the source code for com.vaadin.server FontAwesome USER_PLUS.
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 ww. ja v a2s . 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.pagelinks.impl.PageLinkFactoryImpl.java
License:Apache License
@Override public Link createRegisterPageLink() { final Link pageLink = new Link("Register", new ExternalResource( LINK_SEPARATOR + CommonsViews.MAIN_VIEW_NAME + PAGE_SEPARATOR + ApplicationPageMode.REGISTER)); pageLink.setId(ViewAction.VISIT_REGISTER.name()); pageLink.setIcon(FontAwesome.USER_PLUS); return pageLink; }
From source file:com.vphakala.Toolbar.java
public Toolbar(String windowName, Button read, Button create, Button update, Button delete) { setSpacing(true);/* ww w. ja v a 2 s . c om*/ create.setIcon(FontAwesome.USER_PLUS); create.setDescription("Create a new " + windowName + "."); read.setIcon(FontAwesome.USER); read.setDescription("Read the " + windowName + ". Insert NAME."); update.setIcon(FontAwesome.SAVE); update.setDescription("Store the " + windowName + " data."); delete.setIcon(FontAwesome.TRASH); delete.setDescription("Remove the " + windowName); addComponents(read, create, update, delete); }