aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/test/java
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Redesign user-defined column identifiers for Grid (#7983)Teemu Suo-Anttila2016-12-154-109/+108
| | | Closes vaadin/framework8-issues#494
* Migrate 7.7.5 branch patches to v8. (#7969)Denis2016-12-151-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Prevent adding several scrollbar handlers (#19189). Change-Id: Ib0cc6c6835aab6d263f153362a328bcf2be7bc5c * Prevent adding several scrollbar handlers (#19189). * Keep expand ratio for last row/column when reducing grid layout size (#20297) Change-Id: Iff53a803596f4fc1eae8e4bfa307b9c1f4df961a * Fixed drag and drop failure when message dragged from email client (#20451) When dragging message form email client on Windows, item.webkitGetAsEntry() might return null creating NPE on the client side. Added additional checks for this situation. Change-Id: I569f7e6d0d7b137f24be53d1fbce384695ae8c73 * Change expected pre-release version number pattern in publish report Change-Id: Icdacecc490d2490ea9e262f5c5736c1dece2a89d * Mark TextField/TextArea as busy when a text change event is pending (#20469) Change-Id: I404985ae0be1e7dc65171b610032f8649e700f50 # Conflicts: # client/src/main/java/com/vaadin/client/ui/VTextField.java # uitest/src/main/java/com/vaadin/tests/components/textfield/TextChangeEvents.java * Fixed touch scrolling issue in Surface and WP devices (#18737) Fixed by using pointerevents instead of touchevents when the browser is IE11, or Edge. Also added touch-action: none; css rules into escalator.css to prevent default touch behaviour on IE11 and Edge. Does not affect IE8 to IE10 browsers, behaviour on those will stay the same as before the fix. No new unit tests since we do not have automatic touch testing possibilities yet. Please test manually with Surface: IE11 and Edge, use for example uitest: com.vaadin.tests.components.grid.basics.GridBasicsomponents.grid.basics.GridBasics Change-Id: Iddbf1852e6ffafc855f749d6f4ebb235ed0f5703 * Add lazy/simple resize mode to Grid (#20108) Change-Id: I47427efc28c350382dba8c1f50fd332a3f4585e4 # Conflicts: # client/src/main/java/com/vaadin/client/connectors/GridConnector.java # client/src/main/java/com/vaadin/client/widgets/Grid.java # server/src/main/java/com/vaadin/ui/Grid.java # shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java # themes/src/main/themes/VAADIN/themes/base/grid/grid.scss # uitest/src/main/java/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java Change-Id: Ieca56121875198ed559a41c143b28926e2695433 * Fix NPE in case some items don't contain all properties of Grid. This could occur in when parent is a different entity than its children in hierarchical data. Change-Id: Icd53b5b5e5544a3680d0cd99702ab78224b2dc08 # Conflicts: # server/src/main/java/com/vaadin/data/fieldgroup/FieldGroup.java # server/src/main/java/com/vaadin/ui/Grid.java * Mark TextField/TextArea as busy when a text change event is pending (#20469) Change-Id: I404985ae0be1e7dc65171b610032f8649e700f50 # Conflicts: # client/src/main/java/com/vaadin/client/ui/VTextField.java # uitest/src/test/java/com/vaadin/tests/components/textfield/TextChangeEventsTest.java * Add lazy/simple resize mode to Grid (#20108) Change-Id: I47427efc28c350382dba8c1f50fd332a3f4585e4 * Removed V8 VTextField unused import, forgotten @RunLocally. * Don't rely on selenium "sendKeys" behavior. * Revert "Change expected pre-release version number pattern in publish report" This reverts commit 8df27b952dddb691aead6a633c5b3724c98bf343. * Migrate TextField/TextArea patch from 7.7 to master (modern components) Mark TextField/TextArea as busy when a text change event is pending (#20469) Change-Id: I404985ae0be1e7dc65171b610032f8649e700f50
* (Re)introduce server side sort for Grid.Denis2016-12-151-0/+54
| | | | | Fixes vaadin/framework8-issues#557
* Add ValueProvider interface, use where appropriateAleksi Hietanen2016-12-153-9/+9
|
* Combine and rename setFilter and applyFilter (#7963)Leif Åstrand2016-12-153-24/+10
| | | | | | | | | | | | | | setFilter is an unsuitable name since it looks like a setter even though it isn't one. It's therefore renamed to withFilter. The difference between setFilter and applyFilter is very confusing. The original reason for the distinction was that they had incompatible return types (Void vs F), but this is resolved by changing the non-appendable version to use ? instead of Void. One side effect of this change is that setFilter cannot be used on an appendable filter provider to create a wrapped data provider without further filtering support. This theorethical case is still supported by using convertFilter with a Void -> F converter.
* Rename com.vaadin.data.util.converter to com.vaadin.data.converterPekka Hyvönen2016-12-1426-44/+34
|
* Remove unused JsonUtil (#7989)Pekka Hyvönen2016-12-141-205/+0
|
* Miscellaneous Interface RefactoringIlia Motornyi2016-12-141-4/+3
|
* Remove usage of Consumer from event listeners (#7985)Pekka Hyvönen2016-12-149-31/+31
| | | | | | | | | | | | | Touched event listeners are: - SelectionListener - MultiSelectionListener - SingleSelectionListener - ValueChangeListener - ItemClickListener - BindingValidationStatusHandler - BinderValidationStatusHandler - StatusChangeListener Part of vaadin/framework8-issues#264
* Rename setRequired to asRequired since it's logically not a setter (#7986)Leif Åstrand2016-12-142-6/+7
|
* Rename SelectAllCheckBoxVisible enumeration. (#7981)Denis2016-12-141-24/+24
| | | Fixes vaadin/framework8-issues#540
* Provide declarative support for Grid. (#7961)Denis2016-12-133-10/+748
| | | Fixes vaadin/framework8-issues#390