List of usage examples for com.vaadin.server FontAwesome PIE_CHART
FontAwesome PIE_CHART
To view the source code for com.vaadin.server FontAwesome PIE_CHART.
Click Source Link
From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.BallotMenuItemFactoryImpl.java
License:Apache License
@Override public void createBallotMenuBar(final MenuBar menuBar, final String pageId) { initApplicationMenuBar(menuBar);/*w w w .j a v a2s . c o m*/ menuBar.addItem(OVERVIEW_TEXT, FontAwesome.PIE_CHART, new PageModeMenuCommand(UserViews.BALLOT_VIEW_NAME, PageMode.OVERVIEW, pageId)); menuBar.addItem(CHARTS_TEXT, FontAwesome.PIE_CHART, new PageModeMenuCommand(UserViews.BALLOT_VIEW_NAME, PageMode.CHARTS, pageId)); menuBar.addItem(INDICATORS_TEXT, FontAwesome.PIE_CHART, new PageModeMenuCommand(UserViews.BALLOT_VIEW_NAME, PageMode.INDICATORS, pageId)); }
From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.BallotMenuItemFactoryImpl.java
License:Apache License
@Override public void createOverviewPage(final VerticalLayout panelContent, final String pageId) { final GridLayout grid = createGridLayout(panelContent); createButtonLink(grid, CHARTS_TEXT, FontAwesome.PIE_CHART, new PageModeMenuCommand(UserViews.BALLOT_VIEW_NAME, PageMode.CHARTS, pageId), "Default description"); createButtonLink(grid, INDICATORS_TEXT, FontAwesome.PIE_CHART, new PageModeMenuCommand(UserViews.BALLOT_VIEW_NAME, PageMode.INDICATORS, pageId), "Default description"); }
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 www . j av a 2 s . co 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(""); }); }