From 2ed3d92ef894656ead3f17e1816cdc1517c3d4e6 Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Thu, 11 Dec 2014 23:12:55 +0200 Subject: Remove SortEventOriginator and replace it with a boolean (#13334) Change-Id: I8a203c5e2f4bc9074ccf3cb4e7f347f17d89fe52 --- .../com/vaadin/shared/ui/grid/GridServerRpc.java | 2 +- .../vaadin/shared/ui/grid/SortEventOriginator.java | 36 ---------------------- 2 files changed, 1 insertion(+), 37 deletions(-) delete mode 100644 shared/src/com/vaadin/shared/ui/grid/SortEventOriginator.java (limited to 'shared/src') 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 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 - -} -- cgit v1.2.3