| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
| |
Fixes #8524
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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 45de8f45c4a1e3e45ab8a0353ab2a48bb4f1be6f.
* Merge branch 'master' into issue/8287_Clear_bound_fields
* Remove override for default implementation.
* Fire status change event on clearFields if we had changes before clearing.
* Formatting.
|
| |
|
| |
|
|
|
| |
Fixes #8357
|
|
|
|
|
|
| |
@NotNull, @Size(min>1), @NotEmpty annotations are handled via default
configuration which marks fields as required.
Fixes #8382
|
|
|
|
|
|
| |
* Throw if there are no automatically bound fields via bindInstanceFields.
Fixes #8362
|
|
|
|
| |
* Add Grid.addColumn(String, Renderer)
|
|
|
|
| |
Fixes #8371
Fixes #8128
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add isValid to Binder
isValid enables you to check the current validation
status of a given Binder, without firing events or invoking
handlers.
This patch also clarifies the javadocs of StatusChangeEvents'
hasValidationErrors.
* Throw in Binder.isValid if no bean is set and bean validators exist
* Add test cases to BinderTest
|
|
|
|
|
|
|
|
| |
* Add selection methods to grid that delegate to the selection model
* Merge remote-tracking branch 'github/master' into 577-alt
* Remove getFirstSelected, isSelected
|
|
|
|
|
|
|
|
|
|
| |
* Migrate v7 Grid tests. Next round.
Fixes #8419
* Add Grid editor events.
Fixes #8202.
|
|
|
|
|
|
|
|
|
| |
* Add helpers for dealing with columns based on its id
setColumns(Column...) is removed since it's not possible to re-add a
removed column instance.
Fixes #8361
|
|
|
|
|
| |
Executing RPC methods is useful when testing component interaction with
the server. Not only inside the framework but also when creating add-ons
and applications.
|
|
|
|
|
|
|
|
|
| |
* Make Grid add columns based on bean properties
The property set concept used for Binder is slightly generalized and
used by Grid as well to support similar functionality.
Fixes vaadin/framework8-issues#250
|
|
|
| |
Fixes #8273
|
|
|
|
|
| |
Running formatter:format will format all files in a submodule using an
embedded Eclipse compiler (based on Neon SR1)
according to the regular formatting settings file.
|
|
|
| |
Fixes #8366
|
|
|
|
| |
* Fix userOriginated state for CheckBox ValueChangeEvent from the user
|
|
|
|
|
| |
Fixes #8282
|
|
|
|
|
|
| |
Add convenience constructors (#598)
Added convenience constructors to ui components that have
been reimplemented for Vaadin 8
|
| |
|
|
|
|
|
|
| |
* Introduce empty selection functionality for NativeSelect.
Fixes vaadin/framework8-issues#545
|
|
|
|
|
|
|
| |
Add convenience constructors for TextField (#597)
Added TextField convenience constructors similar to the
ones found in Vaadin framework 7
|
| |
|
|
|
| |
Fixes #8253
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add DataProvider refreshItem for single item update
* Add 'id' concept for DataProviders
This patch also adds a simplified data provider that can replace items
based on their id. This can be used to simulate stale objects from an actual
backend.
* Add refresh logic to Grid SelectionModels
* Remove broken equals and hashCode
* Refresh KeyMapper, clean up some methods
* Fix UI.access in test
* Fix tests and Grid single selection model
* Do clean up before replacing data provider
* Check correct variable for null value
* Fix other selects, add generic tests
* Code style fixes, removed assert
* Merge remote-tracking branch 'origin/master' into 286_refresh_items
* Fix documentation for refreshing an item
* Improve introduction chapter, minor clarifications
* Merge remote-tracking branch 'origin/master' into 287_refresh_items
* Add missing parameters in unit tests
|
|
|
|
|
|
|
| |
The immediate benefit of this change is that ComboBox doesn't have to do
any wrapping when a ListDataProvider is set. A secondary benefit is that
a bunch of redundant type parameters and unsafe casts can be removed.
This is one of many steps towards #8245
|
|
|
|
|
|
| |
* Use non-Generic SortOrder in Query.
Fixes #8215
|
|
|
|
|
|
|
|
|
|
| |
* Allow distinct configurable filter and wrapped filter types
This enables implementing the use case that was already described
towards the end of datamodel-providers.asciidoc.
Also swaps the order of the callback type parameters to make all three
match the order of the ConfigurableFilterDataProvider type parameters.
|
|
|
|
|
| |
Cannot overload the same create method for this purpose since it
conflicts with T... overload. Each case is instead given its own
descriptive but still discoverable method name.
|
|
|
|
| |
* Make BeanBinderPropertySet exclude Object properties
|
|
|
|
|
|
|
|
| |
* Method names unified to withXyzFilter
* withConfigurableFilter moved to DataProvider
* Remove DataProviderWrapper.convert since it does the same as
DataProvider.withConvertedFilter
* Make javadocs slightly more consistent
* Make type parameters consistent
|
|
|
|
|
|
| |
* Use getFirstSelectedItem() instead of getFirstSelected().
Fixes vaadin/framework8-issues#596
|
|
|
|
| |
* Fix BeanBinderPropertySet to not deserialize into multiple instances
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove outdated filtering concepts
withFilter is removed since filters are supposed to be set as state in
the data provider instead of by wrapping.
AppendabileFilterDataProvider is removed since the data provider is
supposed to do any appending when updating its own state instead of
through wrapping.
This is one of many steps towards #8245
|
|
|
|
|
| |
Also updates ComboBox.setItems to use these new shorthands
This is one of many steps towards #8245
|
|
|
|
|
|
| |
* Add a data provider wrapper with a configurable filter
This is one of many steps towards #8245
|
|
|
|
|
|
| |
* Overload AbstarctComponent.setDescription() with content mode parameter
Fixes #8185
|
|
|
|
|
|
|
|
|
|
| |
* Introduce DateTimeFile and InlineDateTimeField.
Fixes #8132
* Correct and provide declarative tests.
* Provide a date converter and UI tests.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Change BackEndDataProvider into an interface
BackEndDataProvider is now an interface with methods for setting
sorting options based on SortOrder instances.
AbstractBackEndDataProvider stores sorting options, combines them with
the sorting provided in the query and invokes its own abstract fetch and
size methods.
CallbackDataProvider implements a BackEndDataProvider based on two
lambdas.
This is one of many steps towards #8245
|
|
|
|
|
|
| |
* Allow setting filters directly in ListDataProvider
This is one of many steps towards #8245
|
|
|
|
|
|
| |
* Make data providers statefull with regards to default sort orders
This is one of many steps towards #8245
|
|
|
| |
Closes #8232
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Replace Listing with HasDataProvider and HasFilterableDataProvider
The type parameters of the Listing interface does in practice mean that
it isn't useful for anything. This patch replaces that interface with
separate types for components that require filterable data providers and
components that support any kind of data provider.
The setItem methods are extracted to a common interface that is also
directly implemented by AbstractListing.
|
|
|
|
| |
* Include old value in ValueChangeEvent
|
| |
|