Package com.ms.com Previous
Previous
Contents
Contents
Index
Index
Next
Next

Interface IAccessible

Methods , Fields

public interface IAccessible extends IUnknown {
  // Fields
  public static final com.ms.com._Guid iid = new com.ms.com._Guid((int)0x618736e0, (short)0x3c3d, (short)0x11cf, (byte)0x81, (byte)0xc, (byte)0x0, (byte)0xaa, (byte)0x0, (byte)0x38, (byte)0x9b, (byte)0x71);
  // Methods
  public Object getAccParent();
  public int getAccChildCount();
  public Object getAccChild(Variant varChild);
  public String getAccName(Variant varChild);
  public String getAccValue(Variant varChild);
  public String getAccDescription(Variant varChild);
  public Variant getAccRole(Variant varChild);
  public Variant getAccState(Variant varChild);
  public String getAccHelp(Variant varChild);
  public String getAccKeyboardShortcut(Variant varChild);
  public Variant getAccFocus();
  public String getAccDefaultAction(Variant varChild);
  public void accSelect(int flagsSelect, Variant varChild);
  public void accLocation(int[] pxLeft, int[] pyTop, int[] pcxWidth, int[] pcyHeight, Variant varChild);
  public Variant accNavigate(int navDir, Variant varStart);
  public Variant accHitTest(int xLeft, int yTop);
  public void accDoDefaultAction(Variant varChild);
  public void setAccName(Variant varChild, String pszName);
  public void setAccValue(Variant varChild, String pszValue);
}

The IAccessible interface provides methods that enable clients to request selection and focus information, perform hit tests, and navigate using object and child identifiers.

Accessible objects maintain pieces of information (that is, properties) that help describe the object's appearance, nature, and purpose. The IAccessible interface extends methods that enable a client application to retrieve these properties. Using the information that these properties provide, an accessibility aid can determine useful information and convey it as needed.


Methods


accDoDefaultAction

public void accDoDefaultAction(Variant varChild);

Performs the object's default action.

Return Value:

No return value.

ParameterDescription
varChild A Variant child.


accHitTest

public Variant accHitTest(int xLeft, int yTop);

Retrieves a child object at a given point on the screen.

Return Value:

A Variant class.

ParameterDescription
xLeft The x coordinate of the screen point to be hit-tested.
yTop The y coordinate of the screen point to be hit-tested.


accLocation

public void accLocation(int[] pxLeft, int[] pyTop, int[] pcxWidth, int[] pcyHeight, Variant varChild);

Retrieves an Active Accessibility object's screen location and its child element.

Return Value:

No return value.

ParameterDescription
pxLeft The x coordinate of the object's screen location.
pyTop The y coordinate of the object's screen location.
pcxWidth The width, in pixels, of the object.
pcyHeight The height, in pixels, of the object.
varChild The Variant child contained within the object.


accNavigate

public Variant accNavigate(int navDir, Variant varStart);

Retrieves the object navigated to in the given direction.

Return Value:

Returns the Variant object navigated to.

ParameterDescription
navDir The navigation code.
varStart The Variant object navigated from.


accSelect

public void accSelect(int flagsSelect, Variant varChild);

Changes focus and selection according to the selection flags.

Return Value:

No return value.

ParameterDescription
flagsSelect The selection flags.
varChild The Variant child that is selected.


getAccChild

public Object getAccChild(Variant varChild);

Retrieves the child at the specified one-based index.

Return Value:

Returns the requested child object.

ParameterDescription
varChild The Variant that contains the index.


getAccChildCount

public int getAccChildCount();

Retrieves the number of components in the parent container.

Return Value:

Returns the number of components in the parent container.


getAccDefaultAction

public String getAccDefaultAction(Variant varChild);

Performs the default action for the varChild object.

Return Value:

Returns a string describing the default action of the varChild object.

ParameterDescription
varChild The specified Variant child object.


getAccDescription

public String getAccDescription(Variant varChild);

Retrieves a description of the object.

Return Value:

Returns a description of the current object.

ParameterDescription
varChild The currently selected object.


getAccFocus

public Variant getAccFocus();

Retrieves the child object that currently has focus within its container or retrieves the container object itself.

Return Value:

Returns the Variant object that currently has focus.


getAccHelp

public String getAccHelp(Variant varChild);

Provides Help text for the object.

Return Value:

Returns a string describing the object's function.

ParameterDescription
varChild The selected Variant object that Help text is requested for.


getAccKeyboardShortcut

public String getAccKeyboardShortcut(Variant varChild);

Retrieves the keyboard shortcut to select the desired object.

Return Value:

Returns a string describing a sequence of keystrokes. Throws a ComFailException error if the specified varChild is not valid.

ParameterDescription
varChild The selected Variant object.


getAccName

public String getAccName(Variant varChild);

Retrieves the object's displayed name.

Return Value:

Returns the string displayed as the object's name.

ParameterDescription
varChild The specified child object.


getAccParent

public Object getAccParent();

Retrieves the parent object or container of the child object.

Return Value:

Returns the parent object of the current object.


getAccRole

public Variant getAccRole(Variant varChild);

Retrieves the role of the specified object.

Return Value:

Returns a Variant with the role code of the specified varChild.

ParameterDescription
varChild The Variant object that the role code is requested for.


getAccState

public Variant getAccState(Variant varChild);

Retrieves the state code of the specified Variant object.

Return Value:

Returns a Variant describing the state of the currently selected object.

ParameterDescription
varChild The object that the state code is requested for.


getAccValue

public String getAccValue(Variant varChild);

Provides edit field value text for the object.

Return Value:

Returns the contents of an object's edit field.

ParameterDescription
varChild The object that the value text is requested for.


setAccName

public void setAccName(Variant varChild, String pszName);

Sets the displayed name for the specified child object.

Return Value:

No return value.

ParameterDescription
varChild The named child object.
pszName The string set as the object's name.


setAccValue

public void setAccValue(Variant varChild, String pszValue);

Sets the value of an edit field for the specified object.

Return Value:

No return value.

ParameterDescription
varChild The object that the value text is set for.
pszValue The value for the edit field.


Fields

iid
The interface ID.


Top© 1997 Microsoft Corporation. All rights reserved. Legal Notices.