|
|
||||||||||
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.gui.QAccessible
com.trolltech.qt.gui.QAccessibleInterface
com.trolltech.qt.gui.QAccessibleObject
public abstract class QAccessibleObject
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.
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()
Returns true if all the data necessary to use this interface implementation is valid (e.g. all pointers are non-null); otherwise returns false. |
QObject |
object()
Returns a pointer to the QObject this interface implementation provides information for. |
QRect |
rect(int child)
Returns the geometry of the object, or of the object's child if child is not 0. |
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)
Returns the number of custom actions of the object, or of the object's child if child is not 0. |
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 |
---|
public QAccessibleObject(QObject object)
Creates a QAccessibleObject for object.
Method Detail |
---|
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.
actionText
in class QAccessibleInterface
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.
doAction
in class QAccessibleInterface
public boolean isValid()
Returns true if all the data necessary to use this interface implementation is valid (e.g. all pointers are non-null); otherwise returns false.
isValid
in class QAccessibleInterface
public QObject object()
Returns a pointer to the QObject this interface implementation provides information for.
object
in class QAccessibleInterface
public QRect rect(int child)
Returns the geometry of the object, or of the object's child if child is not 0. The geometry is in screen coordinates.
This function is only reliable for visible objects (invisible objects might not be laid out correctly).
All visual objects provide this information.
rect
in class QAccessibleInterface
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.
setText
in class QAccessibleInterface
public int userActionCount(int child)
Returns the number of custom actions of the object, or of the object's child if child is not 0.
The Action type enumerates predefined actions: these are not included in the returned value.
userActionCount
in class QAccessibleInterface
public static QAccessibleObject fromNativePointer(QNativePointer nativePointer)
nativePointer
- the QNativePointer of which object should be returned.
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |