com.trolltech.qt.gui
Class QAccessibleEvent
java.lang.Object
com.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QEvent
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 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.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 |
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
currentSender |
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.internal.QSignalEmitterInternal |
__qt_signalInitialization |
Methods inherited from class java.lang.Object |
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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()
.
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