|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QComboBox.InsertPolicy>
com.trolltech.qt.gui.QComboBox.InsertPolicy
public static enum QComboBox.InsertPolicy
This enum specifies what the QComboBox should do when a new string is entered by the user.
Enum Constant Summary | |
---|---|
InsertAfterCurrent
The string is inserted after the current item in the combobox. |
|
InsertAlphabetically
The string is inserted in the alphabetic order in the combobox. |
|
InsertAtBottom
The string will be inserted after the last item in the combobox. |
|
InsertAtCurrent
The current item will be replaced by the string. |
|
InsertAtTop
The string will be inserted as the first item in the combobox. |
|
InsertBeforeCurrent
The string is inserted before the current item in the combobox. |
|
NoInsert
The string will not be inserted into the combobox. |
Method Summary | |
---|---|
static QComboBox.InsertPolicy |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static QComboBox.InsertPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QComboBox.InsertPolicy[] |
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 QComboBox.InsertPolicy NoInsert
The string will not be inserted into the combobox.
public static final QComboBox.InsertPolicy InsertAtTop
The string will be inserted as the first item in the combobox.
public static final QComboBox.InsertPolicy InsertAtCurrent
The current item will be replaced by the string.
public static final QComboBox.InsertPolicy InsertAtBottom
The string will be inserted after the last item in the combobox.
public static final QComboBox.InsertPolicy InsertAfterCurrent
The string is inserted after the current item in the combobox.
public static final QComboBox.InsertPolicy InsertBeforeCurrent
The string is inserted before the current item in the combobox.
public static final QComboBox.InsertPolicy InsertAlphabetically
The string is inserted in the alphabetic order in the combobox.
Method Detail |
---|
public static final QComboBox.InsertPolicy[] values()
for(QComboBox.InsertPolicy c : QComboBox.InsertPolicy.values()) System.out.println(c);
public static QComboBox.InsertPolicy 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 QComboBox.InsertPolicy resolve(int value)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |