|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QHeaderView.ResizeMode>
com.trolltech.qt.gui.QHeaderView.ResizeMode
public static enum QHeaderView.ResizeMode
The resize mode specifies the behavior of the header sections. It can be set on the entire header view or on individual sections using setResizeMode.
Constant | Value | Description |
---|---|---|
Interactive | 0 | The user can resize the section. The section can also be resized programmatically using resizeSection. The section size defaults to defaultSectionSize. (See also cascadingSectionResizes.) |
Fixed | 2 | The user cannot resize the section. The section can only be resized programmatically using resizeSection. The section size defaults to defaultSectionSize. |
Stretch | 1 | QHeaderView will automatically resize the section to fill the available space. The size cannot be changed by the user or programmatically. |
ResizeToContents | 3 | QHeaderView will automatically resize the section to its optimal size based on the contents of the entire column or row. The size cannot be changed by the user or programmatically. (This value was introduced in 4.2) |
The following values are obsolete:
Constant | Value | Description |
---|---|---|
Custom | 2 | Use Fixed instead. |
Enum Constant Summary | |
---|---|
Fixed
The user cannot resize the section. |
|
Interactive
The user can resize the section. |
|
ResizeToContents
QHeaderView will automatically resize the section to its optimal size based on the contents of the entire column or row. |
|
Stretch
QHeaderView will automatically resize the section to fill the available space. |
Method Summary | |
---|---|
static QHeaderView.ResizeMode |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static QHeaderView.ResizeMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QHeaderView.ResizeMode[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final QHeaderView.ResizeMode Interactive
The user can resize the section. The section can also be resized programmatically using resizeSection. The section size defaults to defaultSectionSize. (See also cascadingSectionResizes.)
public static final QHeaderView.ResizeMode Stretch
QHeaderView will automatically resize the section to fill the available space. The size cannot be changed by the user or programmatically.
public static final QHeaderView.ResizeMode Fixed
The user cannot resize the section. The section can only be resized programmatically using resizeSection. The section size defaults to defaultSectionSize.
public static final QHeaderView.ResizeMode ResizeToContents
QHeaderView will automatically resize the section to its optimal size based on the contents of the entire column or row. The size cannot be changed by the user or programmatically. (This value was introduced in 4.2)
Method Detail |
---|
public static final QHeaderView.ResizeMode[] values()
for(QHeaderView.ResizeMode c : QHeaderView.ResizeMode.values()) System.out.println(c);
public static QHeaderView.ResizeMode 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 namepublic int value()
QtEnumerator
value
in interface QtEnumerator
public static QHeaderView.ResizeMode resolve(int value)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |