Time for action – adding some infrastructure
Edit the init
method of your
TimeItUI
class to match the following:
@Override protected void init(VaadinRequest request) { initCombo(); initButton(); initLayout(); }
What just happened?
Here we are breaking up the functionality to initialize our UI components in a more suitable way by implementing smaller methods. Now that we have the required infrastructure, we can start adding input components.
Comboboxes
A combobox is an input component that allows users to select an option from a drop-down list. It looks like the following screenshot:
You must be thinking "yeah right, but how do you put those options in ...
Get Vaadin 7 UI Design By Example Beginner's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.