aboutsummaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2014-12-11 23:12:55 +0200
committerVaadin Code Review <review@vaadin.com>2014-12-12 08:56:06 +0000
commit2ed3d92ef894656ead3f17e1816cdc1517c3d4e6 (patch)
tree632a491dba511daebff74cb8bc9a6e6190f7bdcf /shared
parent6fdc3320fec5801a73f51d3e3a3584d23d942c6c (diff)
downloadvaadin-framework-2ed3d92ef894656ead3f17e1816cdc1517c3d4e6.tar.gz
vaadin-framework-2ed3d92ef894656ead3f17e1816cdc1517c3d4e6.zip
Remove SortEventOriginator and replace it with a boolean (#13334)
Change-Id: I8a203c5e2f4bc9074ccf3cb4e7f347f17d89fe52
Diffstat (limited to 'shared')
-rw-r--r--shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java2
-rw-r--r--shared/src/com/vaadin/shared/ui/grid/SortEventOriginator.java36
2 files changed, 1 insertions, 37 deletions
diff --git a/shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java b/shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java
index c87e2a813f..28149010be 100644
--- a/shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java
+++ b/shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java
@@ -29,7 +29,7 @@ public interface GridServerRpc extends ServerRpc {
void selectionChange(List<String> newSelection);
void sort(String[] columnIds, SortDirection[] directions,
- SortEventOriginator originator);
+ boolean userOriginated);
void selectAll();
}
diff --git a/shared/src/com/vaadin/shared/ui/grid/SortEventOriginator.java b/shared/src/com/vaadin/shared/ui/grid/SortEventOriginator.java
deleted file mode 100644
index 0160a4fe56..0000000000
--- a/shared/src/com/vaadin/shared/ui/grid/SortEventOriginator.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright 2000-2014 Vaadin Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.vaadin.shared.ui.grid;
-
-/**
- * Identifier for the originator of a sort event or sort order change event.
- *
- * @since
- * @author Vaadin Ltd
- */
-public enum SortEventOriginator {
-
- /**
- * This event was the result of an API call.
- */
- API,
-
- /**
- * This event was the result of a user interacting with the UI.
- */
- USER
-
-}