FieldBinder
FieldBinder is a single field binding buffer, a little sibling to Binder with similar API
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);
Links
Compatibility
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
HybridMenu - Vaadin Add-on Directory
Modern Navigation MenuVaadin 23 Source Code
Vaadin 8 Source Code
View on GitLab
Issue tracker
Vaadin 14 Source Code
HybridMenu version 3.0.5
HybridMenu ported for Vaadin 10
HybridMenu version 3.0.6
add BreadCrumbs
HybridMenu version 3.0.7
bugfixes and improvements
HybridMenu version 3.0.8
bugfixes and improvements
#48 - notification title missing length check
HybridMenu version 3.0.9
[#61](https://gitlab.com/KaesDingeling/Hybrid-Menu/issues/61) - Problem with MenuConfig.get().withBreadcrumbs(false)
HybridMenu version 3.0.10
NotificationCenter can now display multiple notifications at once
HybridMenu version 3.0.11
Add psydo Views to SubMenu #70
HybridMenu version 3.0.12
- fix bug in theme-builder [#72](https://gitlab.com/KaesDingeling/Hybrid-Menu/issues/72)
- add withData fluent-api for HMButton [#71](https://gitlab.com/KaesDingeling/Hybrid-Menu/issues/71)
HybridMenu version 3.0.13
### Thanks to Slawek Mikula
- fix notification-center bug on many uis on a one session
- NotificationCenter.java - add notification delete event listener
- do not block ExecutorService indefinitely on notificationQueue
HybridMenu version 3.2.1
Update Vaadin to 23
HybridMenu version 3.2.2
Fix bug for upload new versions to directory and update to v23
HybridMenu version 3.2.3
Update to Vaadin 24