diff options
author | Patrik Lindström <patrik@vaadin.com> | 2014-06-17 18:30:04 +0300 |
---|---|---|
committer | Patrik Lindström <patrik@vaadin.com> | 2014-06-26 16:15:05 +0300 |
commit | 6294a26ab8ae5df83d25318c4a8b14db34f5b8a4 (patch) | |
tree | 6513a1c58d8b0e9b1699981269c630335ddd858b /shared/src | |
parent | f4a538019bc6c5abeeb453d9f116088d03d7c32f (diff) | |
download | vaadin-framework-6294a26ab8ae5df83d25318c4a8b14db34f5b8a4.tar.gz vaadin-framework-6294a26ab8ae5df83d25318c4a8b14db34f5b8a4.zip |
Implement Grid client-side Sorting API (#13334)
Change-Id: I9ab18c93bdc1aaf66aa2701c3939311671a60f04
Diffstat (limited to 'shared/src')
-rw-r--r-- | shared/src/com/vaadin/shared/ui/grid/SortDirection.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ui/grid/SortDirection.java b/shared/src/com/vaadin/shared/ui/grid/SortDirection.java new file mode 100644 index 0000000000..3a1828992e --- /dev/null +++ b/shared/src/com/vaadin/shared/ui/grid/SortDirection.java @@ -0,0 +1,35 @@ +/* + * 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; + +/** + * Describes sorting direction for a Grid column + * + * @since 7.4 + * @author Vaadin Ltd + */ +public enum SortDirection { + + /** + * Ascending (e.g. A-Z, 1..9) sort order + */ + ASCENDING, + + /** + * Descending (e.g. Z-A, 9..1) sort order + */ + DESCENDING +} |