public enum ScrollAmount extends java.lang.Enum<ScrollAmount> implements INativeEnum
Enum Constant and Description |
---|
LargeDecrement
Scrolling is done in large decrements, equivalent to pressing the PAGE UP key or clicking on a blank part of a scroll bar.
|
LargeIncrement
Scrolling is done in large increments, equivalent to pressing the PAGE DOWN or PAGE UP key or clicking on a blank part of a scroll bar.
|
NoAmount
No scrolling is done.
|
SmallDecrement
Scrolling is done in small decrements, equivalent to pressing an arrow key or clicking the arrow button on a scroll bar.
|
SmallIncrement
Scrolling is done in small increments, equivalent to pressing an arrow key or clicking the arrow button on a scroll bar.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<ScrollAmount> |
fromNativeValue(int nativeValue) |
java.lang.String |
getConstantName() |
int |
getNativeValue() |
static ScrollAmount |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScrollAmount[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScrollAmount LargeDecrement
public static final ScrollAmount SmallDecrement
public static final ScrollAmount NoAmount
public static final ScrollAmount LargeIncrement
public static final ScrollAmount SmallIncrement
public static ScrollAmount[] values()
for (ScrollAmount c : ScrollAmount.values()) System.out.println(c);
public static ScrollAmount valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getNativeValue()
getNativeValue
in interface INativeEnum
public java.lang.String getConstantName()
getConstantName
in interface INativeEnum
public static java.util.Optional<ScrollAmount> fromNativeValue(int nativeValue)