com.trolltech.qt.core
Class Qt.ScrollBarPolicy

java.lang.Object
  extended by java.lang.Enum
      extended by 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

Field Summary
static Qt.ScrollBarPolicy ScrollBarAlwaysOff
          QAbstractScrollArea never shows a scroll bar.
static Qt.ScrollBarPolicy ScrollBarAlwaysOn
          QAbstractScrollArea always shows a scroll bar.
static Qt.ScrollBarPolicy 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)
          Returns the Qt$ScrollBarPolicy constant with the specified int.
 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)
           
static Qt.ScrollBarPolicy[] values()
           
 
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
 

Field Detail

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.

Method Detail

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 Qt$ScrollBarPolicy constant with the specified int.