|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ScrollPane.ScrollBarPolicy>
org.apache.pivot.wtk.ScrollPane.ScrollBarPolicy
public static enum ScrollPane.ScrollBarPolicy
Enumeration defining when to show a scroll bar, and if not showing, whether to constrain the pane's content to the size of the ScrollPane, or to let the content be shown at its unconstrained size.
| Enum Constant Summary | |
|---|---|
ALWAYS
Always show the scroll bar, and don't affect the layout of the pane's content. |
|
AUTO
Show the scroll bar if the pane's content exceeds the size of the pane in the relevant dimension. |
|
FILL
Do not show the scroll bar, and cause the pane's content to be laid out to exactly fill the available space in the relevant dimension of the pane. |
|
FILL_TO_CAPACITY
Show the scroll bar if the pane's content exceeds the size of the pane in the relevant dimension; if it does not, act like FILL,
omitting the scroll bar and causing the pane's content to fill the
available space in the relevant dimension of the pane. |
|
NEVER
Never show the scroll bar, and don't affect the layout of the pane's content. |
|
| Method Summary | |
|---|---|
static ScrollPane.ScrollBarPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ScrollPane.ScrollBarPolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ScrollPane.ScrollBarPolicy AUTO
public static final ScrollPane.ScrollBarPolicy NEVER
public static final ScrollPane.ScrollBarPolicy ALWAYS
public static final ScrollPane.ScrollBarPolicy FILL
public static final ScrollPane.ScrollBarPolicy FILL_TO_CAPACITY
FILL,
omitting the scroll bar and causing the pane's content to fill the
available space in the relevant dimension of the pane.
| Method Detail |
|---|
public static ScrollPane.ScrollBarPolicy[] values()
for (ScrollPane.ScrollBarPolicy c : ScrollPane.ScrollBarPolicy.values()) System.out.println(c);
public static ScrollPane.ScrollBarPolicy valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||