org.gnu.atk

Class AtkObject

public class AtkObject extends GObject

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may exist in java-gnome 4.0; look out for org.gnome.atk.AtkObject. As this package was never fully implemented in java-gnome 2.x, however, any new code written will have a considerably different public API.

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(Handle handle)
Construct a new AtkObject using the handle returned by a call to the native layer.
Method Summary
booleanaddRelationship(RelationType type, AtkObject target)
Adds a relationship of the specified type with the specified target.
static AtkObjectgetAtkObjectFromHandle(Handle hndl)
Static factory method that should only be used interally by Java-Gnome.
AtkObjectgetChild(int index)
Returns the specified child of the object.
StringgetDescription()
Gets the accessible description of the accessible.
intgetIndexInParent()
Get the index of the accessible in its parent.
LayergetLayer()
Get the Layer of the accessible.
StringgetLocalizedRoleName(Role role)
Get the localized description describing the Role
intgetMDIZorder()
Get the zorder of the accessible.
StringgetName()
Gets the accessible name of the accessible.
intgetNumChildren()
Returns the number of accessible children of the accessible.
AtkObjectgetParent()
Get the accessible parent of the accessible.
RolegetRole()
Gets the role of the accessible.
RolegetRoleForName(String name)
Get the role corresponding to the name.
StringgetRoleName(Role role)
Get the description describing the Role.
booleanremoveRelationship(RelationType type, AtkObject target)
Removes a relationship of the specified type with the specified target.
voidsetDescription(String description)
Sets the accessible description of the accessible.
voidsetName(String name)
Sets the accessible name of the accessible.
voidsetParent(AtkObject parent)
Sets the accessible parent of the accessible.
voidsetRole(Role role)
Sets the role of the accessible.

Constructor Detail

AtkObject

public AtkObject(Handle handle)

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

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

addRelationship

public boolean addRelationship(RelationType type, AtkObject target)

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Adds a relationship of the specified type with the specified target.

Parameters: type target

getAtkObjectFromHandle

public static AtkObject getAtkObjectFromHandle(Handle hndl)

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Static factory method that should only be used interally by Java-Gnome.

getChild

public AtkObject getChild(int index)

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

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.

getDescription

public String getDescription()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Gets the accessible description of the accessible.

Returns: A string representing the accessible description of the accessible.

getIndexInParent

public int getIndexInParent()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Get the index of the accessible in its parent. Returns -1 if the accessible does not have an accessible parent.

getLayer

public Layer getLayer()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Get the Layer of the accessible.

getLocalizedRoleName

public String getLocalizedRoleName(Role role)

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Get the localized description describing the Role

Parameters: role

getMDIZorder

public int getMDIZorder()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Get the zorder of the accessible.

getName

public String getName()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Gets the accessible name of the accessible.

Returns: A string representing the accessible name of the accessible.

getNumChildren

public int getNumChildren()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Returns the number of accessible children of the accessible.

Returns: the number of accessible children.

getParent

public AtkObject getParent()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Get the accessible parent of the accessible.

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

getRole

public Role getRole()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Gets the role of the accessible.

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

getRoleForName

public Role getRoleForName(String name)

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Get the role corresponding to the name.

Parameters: name

getRoleName

public String getRoleName(Role role)

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Get the description describing the Role.

Parameters: role

removeRelationship

public boolean removeRelationship(RelationType type, AtkObject target)

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Removes a relationship of the specified type with the specified target.

Parameters: type target

setDescription

public void setDescription(String description)

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Sets the accessible description of the accessible.

Parameters: description The accessible description.

setName

public void setName(String name)

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Sets the accessible name of the accessible.

Parameters: name The accessible name.

setParent

public void setParent(AtkObject parent)

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Sets the accessible parent of the accessible.

Parameters: parent The accessible parent.

setRole

public void setRole(Role role)

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Sets the role of the accessible.

Parameters: role The role to be set.