org.gnu.atk
Class AtkObject
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.
AtkObject(Handle handle) - Construct a new AtkObject using the handle returned by a call to the
native layer.
|
addEventHandler , addEventHandler , addEventHandler , addEventHandler , addEventHandler , addEventHandler , addListener , collect , freezeNotify , getBooleanProperty , getData , getDoubleProperty , getEventListenerClass , getEventType , getFloatProperty , getGObjectFromHandle , getIntProperty , getJavaObjectProperty , getLongProperty , getPixbufProperty , getProperty , getStringProperty , hasProperty , notify , removeEventHandler , removeListener , setBooleanProperty , setData , setDoubleProperty , setFloatProperty , setIntProperty , setJavaObjectProperty , setLongProperty , setPixbufProperty , setProperty , setStringProperty , thawNotify |
AtkObject
public AtkObject(Handle handle)
Construct a new AtkObject using the handle returned by a call to the
native layer.
handle
- The handle to the native resource.
addRelationship
public boolean addRelationship(RelationType type,
AtkObject target)
Adds a relationship of the specified type with the specified target.
getAtkObjectFromHandle
public static AtkObject getAtkObjectFromHandle(Handle hndl)
Static factory method that should only be used interally by Java-Gnome.
getChild
public AtkObject getChild(int index)
Returns the specified child of the object. The index is 0 based.
index
- The position of the child starting at 0.
- An AtkObject that is the child at the specified position.
getDescription
public String getDescription()
Gets the accessible description of the accessible.
- A string representing the accessible description of the
accessible.
getIndexInParent
public int getIndexInParent()
Get the index of the accessible in its parent. Returns -1 if the
accessible does not have an accessible parent.
getLayer
public Layer getLayer()
Get the Layer of the accessible.
getLocalizedRoleName
public String getLocalizedRoleName(Role role)
Get the localized description describing the Role
getMDIZorder
public int getMDIZorder()
Get the zorder of the accessible.
getName
public String getName()
Gets the accessible name of the accessible.
- A string representing the accessible name of the accessible.
getNumChildren
public int getNumChildren()
Returns the number of accessible children of the accessible.
- the number of accessible children.
getParent
public AtkObject getParent()
Get the accessible parent of the accessible.
- An AtkObject representing the accessible parent of the
accessible.
getRole
public Role getRole()
Gets the role of the accessible.
- A Role which is the role of the accessible.
getRoleForName
public Role getRoleForName(String name)
Get the role corresponding to the name.
getRoleName
public String getRoleName(Role role)
Get the description describing the Role.
removeRelationship
public boolean removeRelationship(RelationType type,
AtkObject target)
Removes a relationship of the specified type with the specified target.
setDescription
public void setDescription(String description)
Sets the accessible description of the accessible.
description
- The accessible description.
setName
public void setName(String name)
Sets the accessible name of the accessible.
name
- The accessible name.
setParent
public void setParent(AtkObject parent)
Sets the accessible parent of the accessible.
parent
- The accessible parent.
setRole
public void setRole(Role role)
Sets the role of the accessible.
role
- The role to be set.