Add-on Directory

← Back

FieldBinder

FieldBinder is a single field binding buffer, a little sibling to Binder with similar API

Author

Contributors

Rating

Popularity

<100

FieldBinder Add-on for Vaadin 8 & 10+

FieldBinder is a little sibling of Binder for special case of single field bindings. FieldBinder enables to use same Converters, Validators and similar API to Binder with single field binding.

FieldBinder connects one Field component with value with one direction binding.

A binder is a binding, representing the mapping of a single field, through converters and validators, and acts as a buffer for bound value.

A binder instance can be bound to a single value and field instance at a time, but can be rebound as needed.

This add-on does not have client side implementation, widgetset compilation is not needed.

Sample code

        // Binder with integer
        FieldBinder<Integer> integerFieldBinder = new FieldBinder<>();
        TextField integerField = new TextField("Input number");

        // Text field with Integer value Converter and Validator
        // Demoing how to detect if value is valid and how to get it from FieldBinding
        FieldBinding<Integer> integerBinding = integerFieldBinder.forField(integerField)
        		.withConverter(new StringToIntegerConverter("This is not a number"))
        		.withValidator(new IntegerRangeValidator("Give a number between 5 and 10",5,10))
        		.bind(integerValue);

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Version 2.0.0

  • Migrated the add-on for Vaadin 14 (works probably also with 10-13)
Released
2019-12-30
Maturity
BETA
License
Apache License 2.0

Compatibility

Framework
Vaadin 10+
Vaadin 8.0+ in 0.2.0
Browser
Browser Independent

Paginator - Vaadin Add-on Directory

Web Component providing an easy way to display a full functioning paginator. Paginator - Vaadin Add-on Directory
## Usage Paginator is a Web Component , that provides an easy way to display a full functioning paginator on a webpage. It provides ability to navigate through list of pages, by clicking on page number or First/Last buttons. ### Client-side implementation This is the server-side (Java) API for Vaadin Platform for the vcf-paginator component. Looking for the client-side version? It can be found here: https://vaadin.com/directory/component/vaadin-component-factoryvcf-paginator ## License & Author This Add-on is distributed under Apache 2.0 Component Factory Paginator is written by Vaadin Ltd. ### Sponsored development Major pieces of development of this add-on has been sponsored by multiple customers of Vaadin. Read more about Expert on Demand at: [Support](https://vaadin.com/support) and [Pricing](https://vaadin.com/pricing)
Client Side
Online Demo
View on GitHub

Paginator version 1.1.0
Updated client-side dependency to vcf-paginator v.1.1.0

Paginator version 2.0.0
Update to Vaadin 14 and change the license to Apache 2.0

Online