Qt Jambi Home

com.trolltech.qt.gui
Class QAccessibleEvent

java.lang.Object
  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.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I>
 
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.
static QAccessibleEvent fromNativePointer(QNativePointer nativePointer)
          This function returns the QAccessibleEvent instance pointed to by nativePointer
 void setValue(java.lang.String aText)
          Set the description or help text for the given child to aText, thereby answering the request.
 java.lang.String value()
          Returns the text set using setValue.
 
Methods inherited from class com.trolltech.qt.core.QEvent
accept, ignore, isAccepted, setAccepted, setT, spontaneous, t, type
 
Methods inherited from class com.trolltech.qt.QtJambiObject
dispose, disposed, 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, equals, getClass, hashCode, notify, notifyAll, toString, 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 aText, thereby answering the request.

See Also:
value

value

public final java.lang.String value()

Returns the text set using setValue.

See Also:
setValue

fromNativePointer

public static QAccessibleEvent fromNativePointer(QNativePointer nativePointer)
This function returns the QAccessibleEvent instance pointed to by nativePointer

Parameters:
nativePointer - the QNativePointer of which object should be returned.

Qt Jambi Home