public enum ScrollAmount extends Enum<ScrollAmount>
Enum Constant and Description |
---|
LARGE_DECREMENT
指定以较大的减量滚动,效果等同于向上翻页或点击滚动条的空白部分。
|
LARGE_INCREMENT
指定以较大的增量滚动,效果等同于向下翻页或点击滚动条组件的轨道。
|
NO_AMOUNT
指定无法执行滚动操作。
|
SMALL_DECREMENT
指定以较小的减量滚动,效果等同于按下向下箭头或点击滚动条上的箭头按钮。
|
SMALL_INCREMENT
指定以较小的增量滚动,效果等同于按下箭头键或点击滚动条上的箭头按钮。
|
Modifier and Type | Method and Description |
---|---|
static ScrollAmount |
valueOf(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 LARGE_DECREMENT
public static final ScrollAmount LARGE_INCREMENT
public static final ScrollAmount NO_AMOUNT
public static final ScrollAmount SMALL_DECREMENT
public static final ScrollAmount SMALL_INCREMENT
public static ScrollAmount[] values()
for (ScrollAmount c : ScrollAmount.values()) System.out.println(c);
public static ScrollAmount 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 2009-2012 Micro Focus. All Rights Reserved.