Make CheckBoxGroup.SimpleMultiSelectModel return a selection copy #293.
getSelectedItems() must return a copy to fulfill the contract specified
in SelectionModel: it must be a snapshot of the current state and safe
to iterate over while changing selection.
Change-Id: Ie2f15eb626dd80df2036bcb2d4e9387fc31389c9
Avoid explicit casting to getter return type in getDescriptor() (#292).
BeanBinder may throw a ClassCastException in some cases because of
explicit "cast" call which doesn't do boxing/unboxing.
Change-Id: I8fc61612c2912f2626c075a4fc19cb812adf8aa2
Some element methods have been integrated into TestBench and are removed from the
framework element classes
Change-Id: I35c8bf272b7603127816595de8145e68500e22e5
Fix regression that broke widget set compilation in 7.7.1 (#20285)
The fix for
https://dev.vaadin.com/ticket/20262
broke widget set compilation on Windows, possibly only under certain circumstances
Change-Id: Ica559b9c7199014bf1a2babad29f53b083ff74a2
Implement support for binding multi-select components
Also updates ComponentTest.getRpcProxy to use an approach that doesn't
require the component to be attached to a UI.
Change-Id: Iab4603a7818cd0fd2a3410660b90a2a839fb8a76
Selection should be updated each time when new data is set (#244).
There is no order in two actions: set data source and selection. So
selection should always be saved to update the index once data is set.
Change-Id: I074d99adb1f11bf29ebaef50979d4cacda5cd1e4
ComboBoxState now inherits AbstractSingleSelectState, but still
effectively communicates its selection via RPC.
Change-Id: I47b6a73f275e0c4c63d70d2c2c8badc95a218157
This patch adds multi selection support only for CheckBoxGroup without
even trying to generalize anything. Adopting the concepts to work with
other components will be done separately.
Change-Id: Id4ccd2c743b74cb022dc9dfd8cd8dae3bf8f0c54
Fix binder.load to reset validation status in the end
Otherwise any validation triggered by field value changes listeners
would cause errors to be visible after loading a new bean.
Change-Id: I741529f491ae6b36ff2a9aa4326c394cc12fb320
Adds an unresolved validation status to make it possible to clear
visible field validation errors, even if status is not yet valid.
Change-Id: I227a8802b6a71be1533dc903bad1a8e2faef5ed2
BinderStatusHandler is now triggered only once per validation.
Unified ValidationError and BinderResult into BinderValidationStatus.
Renamed ValidationStatusChangeEvent into ValidationStatus.
Unified handler names for validation status.
Next patch will fix resetting of field errors on reset.
Change-Id: I9536d554d781fe599fbd7e5bcb5a9ffebe675ca0
Update ComboBox for new DataSource and communication mechanism
This simplifies the client side state machine.
This change does not modify the CSS class name v-filterselect.
Change-Id: I2f4a6e5252045cb7698d582be90693e00961b342