com.trolltech.qt.core
Class Qt.ScrollBarPolicy
java.lang.Object
java.lang.Enum
com.trolltech.qt.core.Qt.ScrollBarPolicy
- All Implemented Interfaces:
- QtEnumerator, java.io.Serializable, java.lang.Comparable
- Enclosing interface:
- Qt
public static final class Qt.ScrollBarPolicy
- extends java.lang.Enum
- implements QtEnumerator
This enum type describes the various modes of QAbstractScrollArea
's scroll bars. (The modes for the horizontal and vertical scroll bars are independent.)
- See Also:
- Serialized Form
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 |
ScrollBarAsNeeded
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.
ScrollBarAlwaysOff
public static final Qt.ScrollBarPolicy ScrollBarAlwaysOff
QAbstractScrollArea
never shows a scroll bar.
ScrollBarAlwaysOn
public static final Qt.ScrollBarPolicy ScrollBarAlwaysOn
QAbstractScrollArea
always shows a scroll bar.
values
public static Qt.ScrollBarPolicy[] values()
valueOf
public static Qt.ScrollBarPolicy valueOf(java.lang.String name)
value
public int value()
- This function should return an integer value for the enum values of the enumeration that implements this interface.
- Specified by:
value
in interface QtEnumerator
resolve
public static Qt.ScrollBarPolicy resolve(int value)
- Returns the ScrollBarPolicy constant with the specified int.