org.gnu.atk
Class AtkObject

java.lang.Object
  |
  +--org.gnu.glib.GObject
        |
        +--org.gnu.atk.AtkObject
Direct Known Subclasses:
Accessible

public class AtkObject
extends GObject

This class is the primary class for accessibility support via the Accessibility TookKit (ATK). Objects which are instances of AtkObject are queried for properties which relate basic properties of a UI component such as name and description.


Constructor Summary
AtkObject(int handle)
          Construct a new AtkObject using the handle returned by a call to the native layer.
 
Method Summary
 AtkObject getChild(int index)
          Returns the specified child of the object.
 java.lang.String getDescription()
          Gets the accessible description of the accessible.
 java.lang.String getName()
          Gets the accessible name of the accessible.
 int getNumChildren()
          Returns the number of accessible children of the accessible.
 AtkObject getParent()
          Get the accessible parent of the accessible.
 Role getRole()
          Gets the role of the accessible.
 void setDescription(java.lang.String description)
          Sets the accessible description of the accessible.
 void setName(java.lang.String name)
          Sets the accessible name of the accessible.
 void setParent(AtkObject parent)
          Sets the accessible parent of the accessible.
 void setRole(Role role)
          Sets the role of the accessible.
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtkObject

public AtkObject(int handle)
Construct a new AtkObject using the handle returned by a call to the native layer.

Parameters:
handle - The handle to the native resource.
Method Detail

getName

public java.lang.String getName()
Gets the accessible name of the accessible.


setName

public void setName(java.lang.String name)
Sets the accessible name of the accessible.

Parameters:
name - The accessible name.

getDescription

public java.lang.String getDescription()
Gets the accessible description of the accessible.


setDescription

public void setDescription(java.lang.String description)
Sets the accessible description of the accessible.

Parameters:
description - The accessible description.

getParent

public AtkObject getParent()
Get the accessible parent of the accessible.

Returns:
An AtkObject representing the accessible parent of the accessible.

setParent

public void setParent(AtkObject parent)
Sets the accessible parent of the accessible.

Parameters:
parent - The accessible parent.

getNumChildren

public int getNumChildren()
Returns the number of accessible children of the accessible.

Returns:
the number of accessible children.

getChild

public AtkObject getChild(int index)
Returns the specified child of the object. The index is 0 based.

Parameters:
index - The position of the child starting at 0.
Returns:
An AtkObject that is the child at the specified position.

getRole

public Role getRole()
Gets the role of the accessible.

Returns:
A Role which is the role of the accessible.

setRole

public void setRole(Role role)
Sets the role of the accessible.

Parameters:
role - The role to be set.

Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net