April 2018
Intermediate to advanced
202 pages
4h 48m
English
The VaadinServlet is configured in the WebConfig class. The UI implementation is realized in the VaadinUI class. For reference, the following snippet of code shows the implementation of the layout of the example application:
@Title("Report Viewer")public class VaadinUI extends UI { private HorizontalLayout header = new HorizontalLayout(); private Panel panel = new Panel(); private MenuBar.MenuItem annualLegalReportItem; @Override protected void init(VaadinRequest vaadinRequest) { MenuBar menuBar = new MenuBar(); menuBar.addStyleName(ValoTheme.MENUBAR_BORDERLESS); MenuBar.MenuItem reportsMenuItem = menuBar.addItem("Reports", VaadinIcons.FILE_TABLE, null); reportsMenuItem.addItem("Worldwide Calls in the Last Hour", VaadinIcons. ...
Read now
Unlock full access