|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QEvent
com.trolltech.qt.gui.QFocusEvent
public class QFocusEvent
The QFocusEvent
class contains event parameters for widget focus events. Focus events are sent to widgets when the keyboard input focus changes. Focus events occur due to mouse actions, key presses (such as Tab or Backtab), the window system, popup menus, keyboard shortcuts, or other application-specific reasons. The reason for a particular focus event is returned by reason()
in the appropriate event handler.
The event handlers QWidget::focusInEvent()
and QWidget::focusOutEvent()
receive focus events.
QWidget::setFocus()
, QWidget::setFocusPolicy()
, and Keyboard Focus.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.trolltech.qt.core.QEvent |
---|
QEvent.Type |
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
Constructor Summary | |
---|---|
QFocusEvent(QEvent.Type type)
Constructs a focus event object. |
|
QFocusEvent(QEvent.Type type,
Qt.FocusReason reason)
Constructs a focus event object. |
Method Summary | |
---|---|
static QFocusEvent |
fromNativePointer(QNativePointer nativePointer)
|
boolean |
gotFocus()
Returns true if type() is QEvent::FocusIn ; otherwise returns false. |
boolean |
lostFocus()
Returns true if type() is QEvent::FocusOut ; otherwise returns false. |
java.lang.String |
toString()
|
Methods inherited from class com.trolltech.qt.core.QEvent |
---|
accept, ignore, isAccepted, registerEventType, registerEventType, setAccepted, setT, spontaneous, t, type |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class java.lang.Object |
---|
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public QFocusEvent(QEvent.Type type)
The type parameter must be either QEvent::FocusIn
or QEvent::FocusOut
. The reason describes the cause of the change in focus.
public QFocusEvent(QEvent.Type type, Qt.FocusReason reason)
The type parameter must be either QEvent::FocusIn
or QEvent::FocusOut
. The reason describes the cause of the change in focus.
Method Detail |
---|
public final boolean gotFocus()
type()
is QEvent::FocusIn
; otherwise returns false.
public final boolean lostFocus()
type()
is QEvent::FocusOut
; otherwise returns false.
public static QFocusEvent fromNativePointer(QNativePointer nativePointer)
public java.lang.String toString()
toString
in class QEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |