public enum ScrollDestination extends Enum<ScrollDestination>
Enum Constant and Description |
---|
ANY
Scroll as little as possible to show the target element.
|
END
Scrolls so that the element is shown at the end of the viewport.
|
MIDDLE
Scrolls so that the element is shown in the middle of the viewport.
|
START
Scrolls so that the element is shown at the start of the viewport.
|
Modifier and Type | Method and Description |
---|---|
static ScrollDestination |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScrollDestination[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScrollDestination ANY
public static final ScrollDestination START
public static final ScrollDestination MIDDLE
public static final ScrollDestination END
public static ScrollDestination[] values()
for (ScrollDestination c : ScrollDestination.values()) System.out.println(c);
public static ScrollDestination valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019 Vaadin Ltd. All rights reserved.