List of usage examples for com.vaadin.server FontAwesome COMPASS
FontAwesome COMPASS
To view the source code for com.vaadin.server FontAwesome COMPASS.
Click Source Link
From source file:tad.grupo7.ccamistadeslargas.IndexView.java
public IndexView() { setMenuCaption("CCAmistadesLargas"); String basepath = VaadinService.getCurrent().getBaseDirectory().getAbsolutePath() + "/WEB-INF/wallpaper2.jpg"; FileResource resource = new FileResource(new File(basepath)); Image image = new Image(null, resource); image.setSizeFull();/*from ww w.ja va 2s .co m*/ addComponent(image); addMenuItem("Perfil", FontAwesome.USER, () -> { removeAllComponents(); addComponent(new PerfilLayout()); }); addMenuItem("Eventos", FontAwesome.COMPASS, () -> { removeAllComponents(); addComponent(new EventosLayout()); }); addMenuItem("Amigos", FontAwesome.USERS, () -> { removeAllComponents(); addComponent(new AmigosLayout()); }); addMenuItem("Cerrar sesin", FontAwesome.POWER_OFF, () -> { Session.destroy(); UI.getCurrent().getNavigator().navigateTo(""); }); }