Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

Accessibility::Accessible Interface Reference

The base interface which is implemented by all accessible objects. More...

import "Accessibility_Accessible.idl";

Inheritance diagram for Accessibility::Accessible:

Accessibility::Application Accessibility::Desktop List of all members.

Public Member Functions

boolean isEqual (in Accessible obj)
 Determine whether an Accessible refers to the same object as another.
Accessible getChildAtIndex (in long index)
 Get the accessible child of this object at index.
long getIndexInParent ()
 Get the index of this object in its parent's child list.
RelationSet getRelationSet ()
 Get a set defining this object's relationship to other accessible objects.
Role getRole ()
 Get the Role indicating the type of UI role played by this object.
string getRoleName ()
 Get a string indicating the type of UI role played by this object.
string getLocalizedRoleName ()
 Get a string indicating the type of UI role played by this object, translated to the current locale.
StateSet getState ()
 Get the current state of the object as a StateSet.
AttributeSet getAttributes ()
 Get a list of properties applied to this object as a whole, as an AttributeSet consisting of name-value pairs.
Application getApplication ()
 Get the containing Application for this object.
Accessible getDocumentObject ()
 Get the containing Accessible for this object which implements Document, if this object is a child of a container which implements the Document interface.

Public Attributes

attribute string name
 name: a (short) string representing the object's name.
attribute string description
 description: a string describing the object in more detail than name.
readonly attribute Accessibility::Accessible parent
 parent: an Accessible object which is this object's containing object.
readonly attribute long childCount
 childCount: the number of children contained by this object.

Detailed Description

The base interface which is implemented by all accessible objects.

All objects support interfaces for querying their contained 'children' and position in the accessible-object hierarchy, whether or not they actually have children.

Note:
Events that may be emitted by instances of Accessible include:

Definition at line 118 of file Accessibility_Accessible.idl.


Member Function Documentation

boolean Accessibility::Accessible::isEqual in Accessible  obj  ) 
 

Determine whether an Accessible refers to the same object as another.

This method should be used rather than brute-force comparison of object references (i.e. "by-value" comparison), as two object references may have different apparent values yet refer to the same object.

Parameters:
obj,: an Accessible object reference to compare to
Returns:
: a boolean indicating whether the two object references point to the same object.

Accessible Accessibility::Accessible::getChildAtIndex in long  index  ) 
 

Get the accessible child of this object at index.

Parameters:
index,: an in parameter indicating which child is requested (zero-indexed).
Returns:
: the 'nth' Accessible child of this object.

long Accessibility::Accessible::getIndexInParent  ) 
 

Get the index of this object in its parent's child list.

Returns:
: a long integer indicating this object's index in the parent's list.

RelationSet Accessibility::Accessible::getRelationSet  ) 
 

Get a set defining this object's relationship to other accessible objects.

Returns:
: a RelationSet defining this object's relationships.

Role Accessibility::Accessible::getRole  ) 
 

Get the Role indicating the type of UI role played by this object.

Returns:
: a Role indicating the type of UI role played by this object.

string Accessibility::Accessible::getRoleName  ) 
 

Get a string indicating the type of UI role played by this object.

Returns:
: a UTF-8 string indicating the type of UI role played by this object.

string Accessibility::Accessible::getLocalizedRoleName  ) 
 

Get a string indicating the type of UI role played by this object, translated to the current locale.

Returns:
: a UTF-8 string indicating the type of UI role played by this object.

StateSet Accessibility::Accessible::getState  ) 
 

Get the current state of the object as a StateSet.

Returns:
: a StateSet encapsulating the currently true states of the object.

AttributeSet Accessibility::Accessible::getAttributes  ) 
 

Get a list of properties applied to this object as a whole, as an AttributeSet consisting of name-value pairs.

As such these attributes may be considered weakly-typed properties or annotations, as distinct from the strongly-typed interface instance data declared using the IDL "attribute" keyword.

Not all objects have explicit "name-value pair" AttributeSet properties.

Attribute names and values may have any UTF-8 string value, however where possible, in order to facilitate consistent use and exposure of "attribute" properties by applications and AT clients, attribute names and values should chosen from a publicly-specified namespace where appropriate.

Note:
[TODO: create a link to a namespace/recommended attributes list on the GAP web pages where we keep a listing of attribute use recommendations.
For example, attributes of Accessible objects corresponding to XHTML content elements should correspond to attribute names and values specified in the w3c XHTML specification, at http://www.w3.org/TR/xhtml2, where such values are not already exposed via a more strongly-typed aspect of the AT-SPI API. Other name-value pairs should be chosen to correspond to attributes in the 'Dublin Core' namespace (http://dublincore.org/documents/dces/), where applicable and available.

Note:
Clients seeking semantic or typographical attributes associated with specific character spans of text content should use Text::getAttributeRun instead. The attributes returned by Accessible::getAttributes do not include "text attributes".
See also:
Accessibility::Text::getAttributeRun
Returns:
: an AttributeSet encapsulating any "attribute values" currently defined for the object.
Since:
AT-SPI 1.7.0

Application Accessibility::Accessible::getApplication  ) 
 

Get the containing Application for this object.

Returns:
the Application instance to which this object belongs.
Since:
AT-SPI 1.7.0

Accessible Accessibility::Accessible::getDocumentObject  ) 
 

Get the containing Accessible for this object which implements Document, if this object is a child of a container which implements the Document interface.

If the object queried is not part of a document (e.g. not a child of a Document instance) this method returns a NIL object.

Returns:
the Accessible instance representing the document to which this object belongs, or NIL, if this object does not belong to the content of any document.
Since:
AT-SPI 1.7.0


Member Data Documentation

attribute string Accessibility::Accessible::name
 

name: a (short) string representing the object's name.

Definition at line 123 of file Accessibility_Accessible.idl.

attribute string Accessibility::Accessible::description
 

description: a string describing the object in more detail than name.

Definition at line 128 of file Accessibility_Accessible.idl.

readonly attribute Accessibility::Accessible Accessibility::Accessible::parent
 

parent: an Accessible object which is this object's containing object.

Definition at line 133 of file Accessibility_Accessible.idl.

readonly attribute long Accessibility::Accessible::childCount
 

childCount: the number of children contained by this object.

Definition at line 138 of file Accessibility_Accessible.idl.


The documentation for this interface was generated from the following file:
Generated on Fri Dec 2 15:20:46 2005 for AT_SPI_IDL by  doxygen 1.4.3