com.trolltech.qt.gui
Class QAccessibleEvent

java.lang.Object
  extended by com.trolltech.qt.internal.QSignalEmitterInternal
      extended by com.trolltech.qt.QSignalEmitter
          extended by com.trolltech.qt.QtJambiObject
              extended by com.trolltech.qt.core.QEvent
                  extended by com.trolltech.qt.gui.QAccessibleEvent
All Implemented Interfaces:
QtJambiInterface

public class QAccessibleEvent
extends QEvent

The QAccessibleEvent class is used to query addition accessibility information about complex widgets. The event can be of type QEvent::AccessibilityDescription or QEvent::AccessibilityHelp .

Some QAccessibleInterface implementations send QAccessibleEvents to the widget they wrap to obtain the description or help text of a widget or of its children. The widget can answer by calling setValue() with the requested information.

The default QWidget::event() implementation simply sets the text to be the widget's tooltip (for AccessibilityDescription event) or its "What's This?" text (for AccessibilityHelp event).


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.AbstractSignal, QSignalEmitter.PrivateSignal0, QSignalEmitter.PrivateSignal1, QSignalEmitter.PrivateSignal2, QSignalEmitter.PrivateSignal3, QSignalEmitter.PrivateSignal4, QSignalEmitter.PrivateSignal5, QSignalEmitter.PrivateSignal6, QSignalEmitter.PrivateSignal7, QSignalEmitter.PrivateSignal8, QSignalEmitter.PrivateSignal9, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9
 
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal
 
Field Summary
 
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
currentSender
 
Constructor Summary
QAccessibleEvent(QEvent.Type type, int child)
          Constructs an accessibility event of the given type, which must be QEvent::AccessibilityDescription or QEvent::AccessibilityHelp .
 
Method Summary
 int child()
          Returns the (1-based) index of the child to which the request applies.
 void setValue(java.lang.String aText)
          Set the description or help text for the given child() to text, thereby answering the request.
 java.lang.String toString()
          Returns a string representation of the this QAccessibleEvent.
 java.lang.String value()
          Returns the text set using setValue().
 
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 com.trolltech.qt.internal.QSignalEmitterInternal
__qt_signalInitialization
 
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

QAccessibleEvent

public QAccessibleEvent(QEvent.Type type,
                        int child)
Constructs an accessibility event of the given type, which must be QEvent::AccessibilityDescription or QEvent::AccessibilityHelp .

child is the (1-based) index of the child to which the request applies. If child is 0, the request is for the widget itself.

See also:
child().

Method Detail

child

public final int child()
Returns the (1-based) index of the child to which the request applies. If the child is 0, the request is for the widget itself.


setValue

public final void setValue(java.lang.String aText)
Set the description or help text for the given child() to text, thereby answering the request.

See also:
value().


value

public final java.lang.String value()
Returns the text set using setValue().

See also:
setValue().


toString

public java.lang.String toString()
Returns a string representation of the this QAccessibleEvent.

Overrides:
toString in class QEvent