Hi all,
I just release the first version of
fluent API for Vaadin 8
.
Now you can code any component as a one liner quick and clean with the new fluent components without loosing any functionality.
Ex: new FTextField().withCaption(“test”).withRequiredIndicatorVisible(true).withWidth(“100px”).withPlaceholder(“enter text”);
Each fluent class implements a fluent interface which adds the fluent methods. Therefore, it’s easy to add fluent functionality to an existing component : just implement the right interface.
Lets say you have a custom ComboBox doing fancy stuff in your project and you want to add fluent way to code it. Implement the FluentComboBox interface.
Ex : public class MyComboBox extends ComboBox implements FluentComboBox<MyComboBox, T> {…}
A dozen components area already available for fluent coding and I’m currently working on the others for a new release soon.