summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorJohannes Dahlström <johannesd@vaadin.com>2016-09-08 21:26:35 +0300
committerVaadin Code Review <review@vaadin.com>2016-09-12 08:19:48 +0000
commit34dc467f08440e2b1a4e563ede205590002ac64e (patch)
tree3d3f787d2d251877b32c8119209791764c85d8db /shared
parent78a5468279ddc442ac64d045f5fe4aa79ed9ef6e (diff)
downloadvaadin-framework-34dc467f08440e2b1a4e563ede205590002ac64e.tar.gz
vaadin-framework-34dc467f08440e2b1a4e563ede205590002ac64e.zip
Reimplement Grid selection model in terms of AbstractSingleSelection
Change-Id: Id21cb0df32e07bd01f90a29a814dcf0775067bfa
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/AbstractSingleSelectState.java4
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java4
2 files changed, 3 insertions, 5 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/AbstractSingleSelectState.java b/shared/src/main/java/com/vaadin/shared/ui/AbstractSingleSelectState.java
index 3889fdae2b..98aad0bf37 100644
--- a/shared/src/main/java/com/vaadin/shared/ui/AbstractSingleSelectState.java
+++ b/shared/src/main/java/com/vaadin/shared/ui/AbstractSingleSelectState.java
@@ -15,8 +15,6 @@
*/
package com.vaadin.shared.ui;
-import com.vaadin.shared.AbstractComponentState;
-
/**
* Shared state for {@code AbstractSingleSelect}.
*
@@ -24,7 +22,7 @@ import com.vaadin.shared.AbstractComponentState;
*
* @since 8.0
*/
-public class AbstractSingleSelectState extends AbstractComponentState {
+public class AbstractSingleSelectState extends TabIndexState {
/**
* The key of the currently selected item or {@code null} if no item is
diff --git a/shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java b/shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java
index ffdbc79a32..4f480139d5 100644
--- a/shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java
+++ b/shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java
@@ -21,7 +21,7 @@ import java.util.List;
import com.vaadin.shared.annotations.DelegateToWidget;
import com.vaadin.shared.data.sort.SortDirection;
-import com.vaadin.shared.ui.TabIndexState;
+import com.vaadin.shared.ui.AbstractSingleSelectState;
/**
* The shared state for the {@link com.vaadin.ui.Grid} component.
@@ -29,7 +29,7 @@ import com.vaadin.shared.ui.TabIndexState;
* @since 8.0
* @author Vaadin Ltd
*/
-public class GridState extends TabIndexState {
+public class GridState extends AbstractSingleSelectState {
/**
* The default value for height-by-rows for both GWT widgets