Package at.bestsolution.uia
Enum Class ScrollAmount
- All Implemented Interfaces:
INativeEnum,Serializable,Comparable<ScrollAmount>,Constable
Contains values that specify the direction and distance to scroll.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionScrolling is done in large decrements, equivalent to pressing the PAGE UP key or clicking on a blank part of a scroll bar.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.No scrolling is done.Scrolling is done in small decrements, equivalent to pressing an arrow key or clicking the arrow button on a scroll bar.Scrolling is done in small increments, equivalent to pressing an arrow key or clicking the arrow button on a scroll bar. -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<ScrollAmount>fromNativeValue(int nativeValue) intstatic ScrollAmountReturns the enum constant of this class with the specified name.static ScrollAmount[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LargeDecrement
Scrolling is done in large decrements, equivalent to pressing the PAGE UP key or clicking on a blank part of a scroll bar. If one page up is not a relevant amount for the control and no scroll bar exists, the value represents an amount equal to the current visible window. -
SmallDecrement
Scrolling is done in small decrements, equivalent to pressing an arrow key or clicking the arrow button on a scroll bar. -
NoAmount
No scrolling is done. -
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. If one page is not a relevant amount for the control and no scroll bar exists, the value represents an amount equal to the current visible window. -
SmallIncrement
Scrolling is done in small increments, equivalent to pressing an arrow key or clicking the arrow button on a scroll bar.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNativeValue
public int getNativeValue()- Specified by:
getNativeValuein interfaceINativeEnum
-
getConstantName
- Specified by:
getConstantNamein interfaceINativeEnum
-
fromNativeValue
-