|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Qt.EventPriority>
com.trolltech.qt.core.Qt.EventPriority
public static enum Qt.EventPriority
This enum can be used to specify event priorities.
Note that these values are provided purely for convenience, since event priorities can be any value between INT_MAX and INT_MIN, inclusive. For example, you can define custom priorities as being relative to each other:
enum CustomEventPriority { // An important event ImportantEventPriority = Qt::HighEventPriority, // A more important event MoreImportantEventPriority = ImportantEventPriority + 1, // A critical event CriticalEventPriority = 100 * MoreImportantEventPriority, // Not that important StatusEventPriority = Qt::LowEventPriority, // These are less important than Status events IdleProcessingDoneEventPriority = StatusEventPriority - 1 };
Enum Constant Summary | |
---|---|
HighEventPriority
Events with this priority are sent before events with NormalEventPriority or LowEventPriority. |
|
LowEventPriority
Events with this priority are sent after events with HighEventPriority or NormalEventPriority. |
|
NormalEventPriority
Events with this priority are sent after events with HighEventPriority, but before events with LowEventPriority. |
Method Summary | |
---|---|
static Qt.EventPriority |
resolve(int value)
|
int |
value()
|
static Qt.EventPriority |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Qt.EventPriority[] |
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 Qt.EventPriority HighEventPriority
Events with this priority are sent before events with NormalEventPriority or LowEventPriority.
public static final Qt.EventPriority NormalEventPriority
Events with this priority are sent after events with HighEventPriority, but before events with LowEventPriority.
public static final Qt.EventPriority LowEventPriority
Events with this priority are sent after events with HighEventPriority or NormalEventPriority.
Method Detail |
---|
public static final Qt.EventPriority[] values()
for(Qt.EventPriority c : Qt.EventPriority.values()) System.out.println(c);
public static Qt.EventPriority 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()
value
in interface QtEnumerator
public static Qt.EventPriority resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |