aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Make it easy to invoke ServerRpc methods as part of unit tests (#8346)Artur2017-02-027-38/+18
| | | | | 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 (#8392)Leif Åstrand2017-02-014-27/+120
| | | | | | | | | * 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
* Introduce Binder.addFialdValueChangeListener (#8273)Denis2017-02-011-0/+167
| | | Fixes #8273
* Add a maven plugin for formatting according to Eclipse settingsLeif Åstrand2017-02-018-70/+47
| | | | | 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.
* Refactor editor API to use Binding instead of a component generator (#8368)Leif Åstrand2017-01-311-1/+2
| | | Fixes #8366
* Fix userOriginated state for CheckBox ValueChangeEvent from the user (#8383)Artur2017-01-301-0/+42
| | | | * Fix userOriginated state for CheckBox ValueChangeEvent from the user
* Fix NPE when grid is sorted by column with null values Ilia Motornyi2017-01-301-0/+147
| | | | | Fixes #8282
* Add convenience constructors to new components (#598) (#8351)caalador2017-01-307-0/+541
| | | | | | Add convenience constructors (#598) Added convenience constructors to ui components that have been reimplemented for Vaadin 8
* Add regression tests for HasValue.getOptionalValue (#8352)Leif Åstrand2017-01-281-0/+44
|
* Introduce empty selection functionality for NativeSelect. (#8336)Denis2017-01-272-2/+26
| | | | | | * Introduce empty selection functionality for NativeSelect. Fixes vaadin/framework8-issues#545
* Add convenience constructors for TextField (#597) (#8341)caalador2017-01-271-0/+70
| | | | | | | Add convenience constructors for TextField (#597) Added TextField convenience constructors similar to the ones found in Vaadin framework 7
* Implement GridSortOrder and SortOrderBuilders (#8338)Aleksi Hietanen2017-01-273-15/+82
|
* Extract Bean validation logic from Binder to BeanValidationBinderDenis2017-01-253-8/+9
| | | Fixes #8253
* Add APIs to inform components of stale objects in DataProvider (#8271)Teemu Suo-Anttila2017-01-259-5/+471
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Refactor how DataCommunicator passes filters to its DataProvider (#8309)Leif Åstrand2017-01-253-17/+58
| | | | | | | 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. (#8239)Denis2017-01-254-14/+9
| | | | | | * Use non-Generic SortOrder in Query. Fixes #8215
* Allow distinct configurable filter and wrapped filter types (#8322)Leif Åstrand2017-01-251-10/+16
| | | | | | | | | | * 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.
* Add static helpers for creating callback data providers (#8314)Leif Åstrand2017-01-256-23/+28
| | | | | 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 (#8306)Leif Åstrand2017-01-241-0/+16
| | | | * Make BeanBinderPropertySet exclude Object properties
* Unify container wrapping (#8312)Leif Åstrand2017-01-242-3/+3
| | | | | | | | * 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(). (#8308)Denis2017-01-242-12/+12
| | | | | | * Use getFirstSelectedItem() instead of getFirstSelected(). Fixes vaadin/framework8-issues#596
* Fix BeanBinderPropertySet to not deserialize into multiple instances (#8305)Leif Åstrand2017-01-232-13/+71
| | | | * Fix BeanBinderPropertySet to not deserialize into multiple instances
* Add shorthands to ComboBox for setting a ListDataProviderLeif Åstrand2017-01-231-9/+35
|
* Remove outdated filtering concepts (#8289)Leif Åstrand2017-01-232-64/+4
| | | | | | | | | | | | | * 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
* Add ListDataProvider shorthands for filter conversion (#8279)Leif Åstrand2017-01-222-0/+52
| | | | | 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 (#8280)Leif Åstrand2017-01-202-17/+121
| | | | | | * Add a data provider wrapper with a configurable filter This is one of many steps towards #8245
* Overload AbstarctComponent.setDescription() with content mode parameter (#8252)Denis2017-01-208-8/+8
| | | | | | * Overload AbstarctComponent.setDescription() with content mode parameter Fixes #8185
* Introduce DateTimeFile and InlineDateTimeField. (#8218)Denis2017-01-196-2/+348
| | | | | | | | | | * Introduce DateTimeFile and InlineDateTimeField. Fixes #8132 * Correct and provide declarative tests. * Provide a date converter and UI tests.
* Change BackEndDataProvider into an interface (#8268)Leif Åstrand2017-01-194-10/+9
| | | | | | | | | | | | | | | | * 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 (#8267)Leif Åstrand2017-01-192-0/+116
| | | | | | * Allow setting filters directly in ListDataProvider This is one of many steps towards #8245
* Make data providers statefull with regards to default sort orders (#8247)Leif Åstrand2017-01-174-121/+83
| | | | | | * Make data providers statefull with regards to default sort orders This is one of many steps towards #8245
* Introduce Binder.setReadOnly() (#8241)Denis2017-01-161-0/+63
| | | Closes #8232
* Replace Listing with HasDataProvider and HasFilterableDataProvider (#8122)Leif Åstrand2017-01-136-17/+34
| | | | | | | | | | | | * 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 (#8229)Aleksi Hietanen2017-01-135-4/+65
| | | | * Include old value in ValueChangeEvent
* Make server tests use fixed locale where needed (#8226)Henri Sara2017-01-124-5/+13
|
* Integrate BeanBinder functionality into Binder (#8096)Leif Åstrand2017-01-127-60/+236
| | | | * Integrate BeanBinder functionality into Binder
* Correctly reset DataCommunicator when its DataProvider is changed (#8138)Aleksi Hietanen2017-01-103-6/+113
| | | | | | | | * Correctly reset DataCommunicator when its DataProvider is changed * Improve ReplaceDataProviderTest * Remove return type from AbstractListing.readItems
* Fix broken method signature of Grid.addColumn (#8180)Aleksi Hietanen2017-01-101-0/+1
| | | Fixes #8129
* Refactor AbstractDateField. (#8146)Denis2017-01-106-27/+64
| | | First round for #8132.
* Allow AbstractField to override value equality (#8201)Leif Åstrand2017-01-101-0/+57
| | | | | | * Allow AbstractField to override value equality Fixes #8089
* Remove uriFragmentChanged from the public API of UriFragmentManager (#8164)Leif Åstrand2017-01-092-10/+3
| | | | | It's an implementation detail that UriFragmentManager uses a UriFragmentChangedListener, so this shouldn't be exposed in its public API.
* Add LocalDateToDateConverter (#8147)Leif Åstrand2017-01-051-0/+100
| | | | * Add LocalDateToDateConverter
* Restore all current instance values after running access tasks (#8131)Leif Åstrand2017-01-051-4/+33
| | | | | | * Restore all current instance values after running access tasks Fixes vaadin/framework8-issues#593
* Automatically complete custom bindings in BeanBinder#bindInstanceFields (#8012)Aleksi Hietanen2017-01-031-0/+58
| | | Closes vaadin/framework8-issues#511
* Global java code cleanup using Eclipse Neon.1Leif Åstrand2016-12-2046-137/+122
|
* Declarative tests improvementsDenis2016-12-207-16/+53
|
* Fix for Grid declarative format (read). (#8050)Denis2016-12-201-5/+11
| | | | | | * Fix for Grid declarative format (read). Fixes vaadin/framework8-issues#576
* Add a SortListener to a Grid (#8008)8.0.0.alpha10Denis2016-12-151-0/+42
| | | | Fixes vaadin/framework8-issues#568
* Extract interfaces from Grid (#8005)Teemu Suo-Anttila2016-12-157-15/+20
| | | | | | * Extract interfaces from Grid Closes vaadin/framework8-issues#566
* Rename com.vaadin.server.data to com.vaadin.data.provider (#8004)Pekka Hyvönen2016-12-1521-43/+49
| | | | | Renamed corresponding test packages too. Fixes vaadin/framework8-issues#110