April 2018
Intermediate to advanced
202 pages
4h 48m
English
New modules have to implement the AppModule interface and follow the SPI requirements for packaging by adding a new file with the name packt.vaadin.datacentric.chapter02.api.AppModule into the META-INF/services directory. This file must contain the name of the fully qualified name of the AppModule implementation.
Let's say you want to develop a module that adds an option to the main menu that shows a notification when clicked. This can be easily implemented as follows:
package com.example;...public class ExampleModule implements AppModule { @Override public void register(ApplicationLayout layout) { ApplicationLayout.MenuOption menuOption = new ApplicationLayout.MenuOption("Example module"); layout.addMenuOption(menuOption, ...Read now
Unlock full access