caalador
4360031019
Binding a null bean should clear the bound field values (#8288)
* Add clear field values #8287
Added functionality to make it possible to clear bound field values manually
or when setting a null bean to binder.
Binder will now clear bound fields for setBean(null) or if using readBean() functionality
when calling the clear() method. Binder.clear() will throw a IllegalStateException if
we have a bound bean.
* MultiSelectionModel MultiSelect should implement emptyValue
* Removing public clear() method and clearing field values only through
setBean(null) and readBean(null) to be consistent and not have
confusing functionality.
* Simplified clearFields() as we don't need to check if field is readOnly
* Document in removeBean JavaDoc that it will also clear the bound fields
if we have a bean the is removed.
* Binder should not have changes after clearing fields.
* Add getEmptyValue as default to MultiSelect.
Multiselect default for empty value should be an empty set.
* Revert "Add getEmptyValue as default to MultiSelect."
This reverts commit
|
7 years ago | |
---|---|---|
.. | ||
benchmarks | Global java code cleanup using Eclipse Neon.1 | 7 years ago |
data | Binding a null bean should clear the bound field values (#8288) | 7 years ago |
event/selection | Use getFirstSelectedItem() instead of getFirstSelected(). (#8308) | 7 years ago |
server | Add a maven plugin for formatting according to Eclipse settings | 7 years ago |
tests | Add addComponentsAndExpand to horizontal and vertical layout (#8480) | 7 years ago |
ui | Provide a convenience method to get items set via setItems(). | 7 years ago |
util | Make one-arg addColumn use natural sort for mutually comparable values (#8458) | 7 years ago |