summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2014-12-18 18:49:22 +0200
committerLeif Åstrand <leif@vaadin.com>2014-12-18 18:49:22 +0200
commite1d84638ff22503d2fc8dd883802536770a21409 (patch)
treed4757cae7593aca599cab0d595929cfe0244b0eb /server/src/com/vaadin/ui
parentbedbe2bf818385bb2356224a40c49de8f8056749 (diff)
downloadvaadin-framework-e1d84638ff22503d2fc8dd883802536770a21409.tar.gz
vaadin-framework-e1d84638ff22503d2fc8dd883802536770a21409.zip
Revert "Update selection after changes in underlying data source
(#13580)." This reverts commit f4d1383b20da01f9fc43c32d7541a7816f8a9a9b. Change-Id: I5911f63ae35bef54f01477b14e5feffdf952aa6d
Diffstat (limited to 'server/src/com/vaadin/ui')
-rw-r--r--server/src/com/vaadin/ui/AbstractSelect.java21
1 files changed, 0 insertions, 21 deletions
diff --git a/server/src/com/vaadin/ui/AbstractSelect.java b/server/src/com/vaadin/ui/AbstractSelect.java
index d5e47b2286..423ebcb46a 100644
--- a/server/src/com/vaadin/ui/AbstractSelect.java
+++ b/server/src/com/vaadin/ui/AbstractSelect.java
@@ -1688,8 +1688,6 @@ public abstract class AbstractSelect extends AbstractField<Object> implements
// Clears the item id mapping table
itemIdMapper.removeAll();
- adjustSelection();
-
// Notify all listeners
fireItemSetChange();
}
@@ -1728,25 +1726,6 @@ public abstract class AbstractSelect extends AbstractField<Object> implements
}
/**
- * Removes orphaned ids from selection.
- *
- * @since 7.4
- */
- protected void adjustSelection() {
- Object value = getValue();
- if (isMultiSelect() && (value instanceof Collection)) {
- Collection<?> collection = (Collection<?>) value;
- for (Object id : collection) {
- if (!containsId(id)) {
- unselect(id);
- }
- }
- } else if (!containsId(value)) {
- unselect(value);
- }
- }
-
- /**
* Implementation of item set change event.
*/
private static class ItemSetChangeEvent extends EventObject implements