Label label = new Label("Hello"); layout.addComponent(label);
becomes simply this: label("Hello")
The layout or component container can be selected using the {@link #with(ComponentContainer)} function and previous component containerswith {@link #endWith()} function.
There also is a set of functions to help displaying user messages more
As you may use this class separately to build UI in any Vaadin application, it is meant to be used to through the {@link McApplication}, {@link McWindow}and {@link McComponent}. They all implement delegate functions for this class to minimize the amount of code needed.
|
|
|
|
|
|