diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2014-12-11 23:12:55 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-12-12 08:56:06 +0000 |
commit | 2ed3d92ef894656ead3f17e1816cdc1517c3d4e6 (patch) | |
tree | 632a491dba511daebff74cb8bc9a6e6190f7bdcf /server/src/com/vaadin/event | |
parent | 6fdc3320fec5801a73f51d3e3a3584d23d942c6c (diff) | |
download | vaadin-framework-2ed3d92ef894656ead3f17e1816cdc1517c3d4e6.tar.gz vaadin-framework-2ed3d92ef894656ead3f17e1816cdc1517c3d4e6.zip |
Remove SortEventOriginator and replace it with a boolean (#13334)
Change-Id: I8a203c5e2f4bc9074ccf3cb4e7f347f17d89fe52
Diffstat (limited to 'server/src/com/vaadin/event')
-rw-r--r-- | server/src/com/vaadin/event/SortOrderChangeEvent.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/src/com/vaadin/event/SortOrderChangeEvent.java b/server/src/com/vaadin/event/SortOrderChangeEvent.java index e38097e3ba..fdf604a034 100644 --- a/server/src/com/vaadin/event/SortOrderChangeEvent.java +++ b/server/src/com/vaadin/event/SortOrderChangeEvent.java @@ -19,7 +19,6 @@ import java.io.Serializable; import java.util.List; import com.vaadin.data.sort.SortOrder; -import com.vaadin.shared.ui.grid.SortEventOriginator; import com.vaadin.ui.Component; /** @@ -34,7 +33,7 @@ import com.vaadin.ui.Component; public class SortOrderChangeEvent extends Component.Event { private final List<SortOrder> sortOrder; - private final SortEventOriginator originator; + private final boolean userOriginated; /** * Creates a new sort order change event with a sort order list. @@ -43,14 +42,15 @@ public class SortOrderChangeEvent extends Component.Event { * the component from which the event originates * @param sortOrder * the new sort order list - * @param originator - * an enumeration describing what triggered the sorting + * @param userOriginated + * <code>true</code> if event is a result of user interaction, + * <code>false</code> if from API call */ public SortOrderChangeEvent(Component source, List<SortOrder> sortOrder, - SortEventOriginator originator) { + boolean userOriginated) { super(source); this.sortOrder = sortOrder; - this.originator = originator; + this.userOriginated = userOriginated; } /** @@ -68,7 +68,7 @@ public class SortOrderChangeEvent extends Component.Event { * @return true if sort event originated from user interaction */ public boolean isUserOriginated() { - return originator == SortEventOriginator.USER; + return userOriginated; } /** |