|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Qt.FocusReason>
com.trolltech.qt.core.Qt.FocusReason
public static enum Qt.FocusReason
This enum specifies why the focus changed. It will be passed through QWidget::setFocus and can be retrieved in the QFocusEvent sent to the widget upon focus change.
| Enum Constant Summary | |
|---|---|
ActiveWindowFocusReason
The window system made this window either active or inactive. |
|
BacktabFocusReason
A Backtab occurred. |
|
MenuBarFocusReason
The menu bar took focus. |
|
MouseFocusReason
A mouse action occurred. |
|
NoFocusReason
Internal. |
|
OtherFocusReason
Another reason, usually application-specific. |
|
PopupFocusReason
The application opened/closed a popup that grabbed/released the keyboard focus. |
|
ShortcutFocusReason
The user typed a label's buddy shortcut |
|
TabFocusReason
The Tab key was pressed. |
|
| Method Summary | |
|---|---|
static Qt.FocusReason |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static Qt.FocusReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Qt.FocusReason[] |
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.FocusReason MouseFocusReason
A mouse action occurred.
public static final Qt.FocusReason TabFocusReason
The Tab key was pressed.
public static final Qt.FocusReason BacktabFocusReason
A Backtab occurred. The input for this may include the Shift or Control keys; e.g. Shift+Tab.
public static final Qt.FocusReason ActiveWindowFocusReason
The window system made this window either active or inactive.
public static final Qt.FocusReason PopupFocusReason
The application opened/closed a popup that grabbed/released the keyboard focus.
public static final Qt.FocusReason ShortcutFocusReason
The user typed a label's buddy shortcut
public static final Qt.FocusReason MenuBarFocusReason
The menu bar took focus.
public static final Qt.FocusReason OtherFocusReason
Another reason, usually application-specific.
public static final Qt.FocusReason NoFocusReason
| Method Detail |
|---|
public static final Qt.FocusReason[] values()
for(Qt.FocusReason c : Qt.FocusReason.values())
System.out.println(c);
public static Qt.FocusReason 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 QtEnumeratorpublic static Qt.FocusReason resolve(int value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||