com.trolltech.qt.gui
Class QAccessibleObject

java.lang.Object
  extended by com.trolltech.qt.QSignalEmitter
      extended by com.trolltech.qt.QtJambiObject
          extended by com.trolltech.qt.gui.QAccessible
              extended by com.trolltech.qt.gui.QAccessibleInterface
                  extended by com.trolltech.qt.gui.QAccessibleObject
All Implemented Interfaces:
QtJambiInterface
Direct Known Subclasses:
QAccessibleWidget

public abstract class QAccessibleObject
extends QAccessibleInterface

The QAccessibleObject class implements parts of the QAccessibleInterface for QObjects.

This class is mainly provided for convenience. All subclasses of the QAccessibleInterface that provide implementations of non-widget objects should use this class as their base class.

See Also:
QAccessible, QAccessibleWidget

Nested Class Summary
 
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QAccessibleInterface
QAccessibleInterface.Target
 
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QAccessible
QAccessible.Action, QAccessible.Event, QAccessible.Method, QAccessible.Relation, QAccessible.RelationFlag, QAccessible.Role, QAccessible.State, QAccessible.StateFlag, QAccessible.Text
 
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
QAccessibleObject(QObject object)
          Creates a QAccessibleObject for object.
 
Method Summary
 java.lang.String actionText(int action, QAccessible.Text t, int child)
          Returns the text property t of the action action supported by the object, or of the object's child if child is not 0.
 boolean doAction(int action, int child, java.util.List<java.lang.Object> params)
          Asks the object, or the object's child if child is not 0, to execute action using the parameters, params.
static QAccessibleObject fromNativePointer(QNativePointer nativePointer)
          This function returns the QAccessibleObject instance pointed to by nativePointer
 boolean isValid()
          This function is reimplemented for internal reasons.
 QObject object()
          This function is reimplemented for internal reasons.
 QRect rect(int child)
          This function is reimplemented for internal reasons.
 void setText(QAccessible.Text t, int child, java.lang.String text)
          Sets the text property t of the object, or of the object's child if child is not 0, to text.
 int userActionCount(int child)
          This function is reimplemented for internal reasons.
 
Methods inherited from class com.trolltech.qt.gui.QAccessibleInterface
childAt, childCount, indexOfChild, invokeMethod, navigate, relationTo, role, state, supportedMethods, text
 
Methods inherited from class com.trolltech.qt.gui.QAccessible
isActive, queryAccessibleInterface, setRootObject, updateAccessibility
 
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

QAccessibleObject

public QAccessibleObject(QObject object)

Creates a QAccessibleObject for object.

Method Detail

actionText

public java.lang.String actionText(int action,
                                   QAccessible.Text t,
                                   int child)

Returns the text property t of the action action supported by the object, or of the object's child if child is not 0.

Specified by:
actionText in class QAccessibleInterface
See Also:
text, userActionCount

doAction

public boolean doAction(int action,
                        int child,
                        java.util.List<java.lang.Object> params)

Asks the object, or the object's child if child is not 0, to execute action using the parameters, params. Returns true if the action could be executed; otherwise returns false.

action can be a predefined or a custom action.

Specified by:
doAction in class QAccessibleInterface
See Also:
userActionCount, actionText

isValid

public boolean isValid()

This function is reimplemented for internal reasons.

Specified by:
isValid in class QAccessibleInterface
See Also:
object

object

public QObject object()

This function is reimplemented for internal reasons.

Specified by:
object in class QAccessibleInterface
See Also:
isValid

rect

public QRect rect(int child)

This function is reimplemented for internal reasons.

Specified by:
rect in class QAccessibleInterface
See Also:
childAt

setText

public void setText(QAccessible.Text t,
                    int child,
                    java.lang.String text)

Sets the text property t of the object, or of the object's child if child is not 0, to text.

Note that the text properties of most objects are read-only.

Specified by:
setText in class QAccessibleInterface
See Also:
text

userActionCount

public int userActionCount(int child)

This function is reimplemented for internal reasons.

Specified by:
userActionCount in class QAccessibleInterface
See Also:
actionText, doAction

fromNativePointer

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

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