diff options
author | Leif Åstrand <leif@vaadin.com> | 2014-02-28 13:42:56 +0200 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2014-02-28 11:45:52 +0000 |
commit | 54b448d018922f6315bb756c24c6ce7feff6e14d (patch) | |
tree | d39b779128a594d2328520415475e612f9febdc0 /shared | |
parent | d2027d8344313b048bf3b82e2a988ab40b0bb596 (diff) | |
download | vaadin-framework-54b448d018922f6315bb756c24c6ce7feff6e14d.tar.gz vaadin-framework-54b448d018922f6315bb756c24c6ce7feff6e14d.zip |
Fix compile errors (#13334)
Change-Id: Ib9210685ed70f98af78b5cc3ad756f37b09c326a
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/com/vaadin/shared/ui/grid/ScrollDestination.java | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ui/grid/ScrollDestination.java b/shared/src/com/vaadin/shared/ui/grid/ScrollDestination.java new file mode 100644 index 0000000000..decc2fab5f --- /dev/null +++ b/shared/src/com/vaadin/shared/ui/grid/ScrollDestination.java @@ -0,0 +1,55 @@ +/* + * Copyright 2000-2013 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; + +/** + * Enumeration, specifying the destinations that are supported when scrolling + * rows or columns into view. + * + * @since 7.2 + * @author Vaadin Ltd + */ +public enum ScrollDestination { + + /** + * Scroll as little as possible to show the target element. If the element + * fits into view, this works as START or END depending on the current + * scroll position. If the element does not fit into view, this works as + * START. + */ + ANY, + + /** + * Scrolls so that the element is shown at the start of the viewport. The + * viewport will, however, not scroll beyond its contents. + */ + START, + + /** + * Scrolls so that the element is shown in the middle of the viewport. The + * viewport will, however, not scroll beyond its contents, given more + * elements than what the viewport is able to show at once. Under no + * circumstances will the viewport scroll before its first element. + */ + MIDDLE, + + /** + * Scrolls so that the element is shown at the end of the viewport. The + * viewport will, however, not scroll before its first element. + */ + END + +} |