List of usage examples for com.vaadin.server FontAwesome LIST
FontAwesome LIST
To view the source code for com.vaadin.server FontAwesome LIST.
Click Source Link
From source file:tad.grupo7.ccamistadeslargas.AdminIndexView.java
public AdminIndexView() { setMenuCaption("CCAmistadesLargas - ADMIN"); 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 . j av a2 s . c o m addComponent(image); addMenuItem("Listado", FontAwesome.LIST, () -> { removeAllComponents(); addComponent(new ListadoLayout()); }); addMenuItem("Grafica", FontAwesome.PIE_CHART, () -> { removeAllComponents(); addComponent(new GraficaLayout()); }); addMenuItem("Cerrar sesin", FontAwesome.POWER_OFF, () -> { Session.destroy(); UI.getCurrent().getNavigator().navigateTo(""); }); }