aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/data
Commit message (Collapse)AuthorAgeFilesLines
...
* HierarchicalDataProvider cache invalidation workaround (#9218)Aleksi Hietanen2017-05-021-1/+3
| | | | | | Workaround for issue in data communication where active keys are dropped incorrectly on the server. See issue #9217
* Improve expand and collapse of items in TreeGrid (#9159)Aleksi Hietanen2017-05-022-13/+86
| | | | | | | | | | | | | Fixes a race condition when expanding multiple items. Only one expand or collapse request should be sent from the client before waiting for a response, otherwise the indexing in subsequent requests will be incorrect. Adds API to collapse and expand multiple items from the server, reducing the amount of round trips with multiple item expands and collapses. HierarchyMapper now correctly keeps expanded nodes expanded if their parent is collapsed.
* Binder with Nested Properties (#8923)chrosim2017-04-123-25/+140
|
* Fix empty TreeGrid (#9067)Aleksi Hietanen2017-04-121-0/+2
|
* Add server-side expand and collapse to TreeGrid (#9021)Aleksi Hietanen2017-04-063-2/+91
| | | | | | | | | | | | | | | | * Add server-side expand and collapse to TreeGrid * Add javadocs * Fix variable naming in TreeGridHugeTreeTest * Fix review comments * Merge remote-tracking branch 'github/master' into 8759-server-expand * Clear pending expands when all data is dropped * Add documentation
* TreeGrid keyboard navigation Ilia Motornyi2017-04-052-9/+47
| | | Fixes #8758
* Make bindInstanceFields not bind fields already bound using functions (#8998)Artur2017-04-031-3/+21
| | | Fixes #8858
* Fix data not being sent again when adding DataGenerators (#8947)Teemu Suo-Anttila2017-03-281-0/+3
| | | | | | * Fix data not being sent again when adding DataGenerators * Fix header component detaching, revert early header cleanup
* Fix infinite loop in data communication (#8927)Aleksi Hietanen2017-03-271-8/+14
| | | | | | | | | | * Fix infinite loop in data communication * Switch to less aggressive reset when data communication is out of sync * Remove triggering of reset if reset is already being performed * Avoid redundant collection of streams in DataCommunicator
* Improve caching when expanding nodes in hierarchical data (#8902)Teemu Suo-Anttila2017-03-241-28/+33
| | | Fixes #8790
* Add feature to disable collapsing items in TreeGrid (#8879)Teemu Suo-Anttila2017-03-231-0/+28
| | | Fixes #8846
* Update since tags for 8.1.0.alpha2 (#8917)8.1.0.alpha2Henri Sara2017-03-231-1/+1
| | | | * Update since tags for 8.1.0.alpha2
* Improved Binder#hasChanges JavaDoc (#8912)Matti Tahvonen2017-03-221-8/+12
| | | | JavaDoc now more explicitly states that hasChanges is not designed to work with setBean.
* Add missing since tags for 8.1.0.alpha1 (#8888)Henri Sara2017-03-213-8/+18
| | | | | | | | * Add missing since tags for 8.1.0.alpha1 * Update @since for DataCommunicatorClientRpc * Update @since for DataCommunicator
* Fix some javadoc errors (#8873)Ahmed Ashour2017-03-203-7/+7
|
* Hierarchical data (#8842)Aleksi Hietanen2017-03-1610-23/+1661
| | | | | | | * Initial HierarchicalDataProvider for TreeGrid * Initial in-memory hierarchical data implementation * TreeGrid declarative support Fixes #8611, Fixes #8620
* Minor fix for javadocs (#8710)Ilia Motornyi2017-03-011-3/+3
|
* Fix some issues with Binder serialization (#8660)Ilia Motornyi2017-02-231-4/+9
| | | Partial fix for #8640
* Add initial implementation of TreeGrid (#8572)Aleksi Hietanen2017-02-231-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | * Add initial implementation of TreeGrid * Refactor TreeGrid and related classes * Fix potential class cast exception in TreeGrid#getDataProvider * Add smoke tests for TreeGrid * Add communication constants for TreeGrid Use shared constant values for hierarchy data serialization and deserialization * Fix event ordering in TreeGrid, add javadocs, keyboard navigation test * TreeGrid improvements * Add TreeGrid.getDataProvider to StateGetDoesNotMarkDirtyTest exclude list * Merge remote-tracking branch 'github/master' into tree-grid * Remove getEscalator override from TreeGrid
* Use an informative exception message when Binder is incorrectly constructed ↵Artur2017-02-201-2/+4
| | | | (#8631)
* Fix since tags for 8.0 (#8575)Henri Sara2017-02-1622-17/+40
| | | Fix since tags for the server and shared modules and new types in client.
* Add javadoc clarification for DataProivder.refreshItem (#8585)Leif Åstrand2017-02-161-0/+8
| | | | * Add javadoc clarification for DataProivder.refreshItem
* Clarify set/addSortComparator parameter name (#8562)Leif Åstrand2017-02-141-9/+9
|
* Binding a null bean should clear the bound field values (#8288)caalador2017-02-091-11/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Clarify javadocs for query values not used for counting (#8509)Leif Åstrand2017-02-081-4/+9
| | | Fixes #8489
* Allow configuring how string to number converters handle empty strings (#8506)Leif Åstrand2017-02-087-22/+128
|
* Provide a convenience method to get items set via setItems(). Denis2017-02-084-15/+74
| | | Fixes #8357
* Extract data provider callbacks to named and documented interfaces (#8508)Leif Åstrand2017-02-082-27/+77
| | | Fixes #8488
* Provide a way to configure bean binder to auto set required fields (#8460)Denis2017-02-083-3/+135
| | | | | | @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. (#8481)Denis2017-02-081-18/+31
| | | | | | * Throw if there are no automatically bound fields via bindInstanceFields. Fixes #8362
* Add isValid to Binder (#8274)Aleksi Hietanen2017-02-032-7/+37
| | | | | | | | | | | | | | | * 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
* Make Grid add columns based on bean properties (#8392)Leif Åstrand2017-02-015-66/+92
| | | | | | | | | * 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/+28
| | | Fixes #8273
* Add a maven plugin for formatting according to Eclipse settingsLeif Åstrand2017-02-011-2/+3
| | | | | 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.
* Add a default getOptionalValue() to HasValue (#8324)Giovanni Lovato2017-01-271-0/+13
| | | Fixes #8323
* Implement GridSortOrder and SortOrderBuilders (#8338)Aleksi Hietanen2017-01-276-0/+321
|
* Fix some faulty javaDoc namescaalador2017-01-261-6/+2
|
* Extract Bean validation logic from Binder to BeanValidationBinderDenis2017-01-255-35/+85
| | | Fixes #8253
* Add APIs to inform components of stale objects in DataProvider (#8271)Teemu Suo-Anttila2017-01-2510-23/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-252-25/+56
| | | | | | | 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-257-26/+71
| | | | | | * Use non-Generic SortOrder in Query. Fixes #8215
* Allow distinct configurable filter and wrapped filter types (#8322)Leif Åstrand2017-01-252-22/+28
| | | | | | | | | | * 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-253-22/+70
| | | | | 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-3/+6
| | | | * Make BeanBinderPropertySet exclude Object properties
* Unify container wrapping (#8312)Leif Åstrand2017-01-244-88/+68
| | | | | | | | * 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
* Fix BeanBinderPropertySet to not deserialize into multiple instances (#8305)Leif Åstrand2017-01-231-29/+75
| | | | * Fix BeanBinderPropertySet to not deserialize into multiple instances
* Remove outdated filtering concepts (#8289)Leif Åstrand2017-01-234-171/+3
| | | | | | | | | | | | | * 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-221-0/+195
| | | | | 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-205-3/+171
| | | | | | * Add a data provider wrapper with a configurable filter This is one of many steps towards #8245
* Introduce DateTimeFile and InlineDateTimeField. (#8218)Denis2017-01-192-0/+125
| | | | | | | | | | * Introduce DateTimeFile and InlineDateTimeField. Fixes #8132 * Correct and provide declarative tests. * Provide a date converter and UI tests.