|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Qt.ScrollBarPolicy>
com.trolltech.qt.core.Qt.ScrollBarPolicy
public static enum Qt.ScrollBarPolicy
This enum type describes the various modes of QAbstractScrollArea's scroll bars.
(The modes for the horizontal and vertical scroll bars are independent.)
Enum Constant Summary | |
---|---|
ScrollBarAlwaysOff
QAbstractScrollArea never shows a scroll bar. |
|
ScrollBarAlwaysOn
QAbstractScrollArea always shows a scroll bar. |
|
ScrollBarAsNeeded
QAbstractScrollArea shows a scroll bar when the content is too large to fit and not otherwise. |
Method Summary | |
---|---|
static Qt.ScrollBarPolicy |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static Qt.ScrollBarPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Qt.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 Qt.ScrollBarPolicy ScrollBarAsNeeded
QAbstractScrollArea shows a scroll bar when the content is too large to fit and not otherwise. This is the default.
public static final Qt.ScrollBarPolicy ScrollBarAlwaysOff
QAbstractScrollArea never shows a scroll bar.
public static final Qt.ScrollBarPolicy ScrollBarAlwaysOn
QAbstractScrollArea always shows a scroll bar.
Method Detail |
---|
public static Qt.ScrollBarPolicy[] values()
for (Qt.ScrollBarPolicy c : Qt.ScrollBarPolicy.values()) System.out.println(c);
public static Qt.ScrollBarPolicy 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 name
java.lang.NullPointerException
- if the argument is nullpublic int value()
QtEnumerator
value
in interface QtEnumerator
public static Qt.ScrollBarPolicy resolve(int value)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |