diff options
author | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2017-01-25 12:27:44 +0200 |
---|---|---|
committer | Denis <denis@vaadin.com> | 2017-01-25 12:27:44 +0200 |
commit | 294ca0a2f5c29b65f9c4dc5887bfa0abc1cb7c7f (patch) | |
tree | 0a4630122dadc632e6508c85e4e79c717508de85 /uitest/src | |
parent | be694984fb35262b32c89be075e6d4a059931b62 (diff) | |
download | vaadin-framework-294ca0a2f5c29b65f9c4dc5887bfa0abc1cb7c7f.tar.gz vaadin-framework-294ca0a2f5c29b65f9c4dc5887bfa0abc1cb7c7f.zip |
Add APIs to inform components of stale objects in DataProvider (#8271)
* 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
Diffstat (limited to 'uitest/src')
-rw-r--r-- | uitest/src/main/java/com/vaadin/tests/data/ReplaceDataProvider.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/data/ReplaceDataProvider.java b/uitest/src/main/java/com/vaadin/tests/data/ReplaceDataProvider.java index 8a33cae95d..8cc8013618 100644 --- a/uitest/src/main/java/com/vaadin/tests/data/ReplaceDataProvider.java +++ b/uitest/src/main/java/com/vaadin/tests/data/ReplaceDataProvider.java @@ -19,16 +19,6 @@ public class ReplaceDataProvider extends AbstractTestUI { this.hash = hash; someField = "a"; } - - @Override - public int hashCode() { - return hash; - } - - @Override - public boolean equals(Object obj) { - return true; - } } @Override |