This interface is used to access control information that could otherwise be retrieved only by viewing the graphical user interface (GUI). UIComponent implements IUIAccessible.
public Rectangle getBounds(IUIComponent comp);
Retrieves the bounding rectanlge of the object, relative to the specified component.
Return Value
Returns the rectangle identifying the object's bounding area, in the coordinate space of the specified component.
Parameter | Description |
comp | The reference component. The coordinates of the returned Rectangle object are relative to this component. If null, screen coordinates are used.
|
public String getDefaultAction();
Retrieves the default action for the object.
Return Value
Returns a string describing the object's default action. For example, a button's default action is "Press."
public String getDescription();
Retrieves a description of the object.
Return Value
Returns a string describing the object, beyond the information provided by getRoleCode, getStateCode, and getName.
public String getHelp();
Retrieves the Help text for the object.
Comments
This method can be used as a tool tip that describes the object.
Return Value
Returns a string describing the function of the object. This value expands on the information provided by getRoleCode, getStateCode, and getName.
public String getKeyboardShortcut();
Retrieves the keyboard shortcut for the object.
Return Value
Returns a string describing the sequence of keystrokes that transfer input focus to the object.
public int getRoleCode();
Retrieves the role of the object.
Return Value
Returns the ROLE_SYSTEM code that best describes the role of the object.
public int getStateCode();
Retrieves the state of the object.
Return Value
Returns the combination of STATE_SYSTEM codes that best describes the state of the object.
public String getValueText();
Retrieves the value of the object.
Return Value
Returns a string describing the visual information contained in the object. This value expands on the information provided by getRoleCode, getStateCode, and getName.
public IUIComponent navigate(IUIComponent comp, int direction,
boolean keyable);
Navigates from the specified component to another component in the specified direction.
Return Value
Returns the component navigated to (if a component in the specified direction exists); otherwise, returns null.
Parameter | Description |
comp | The component to navigate from.
|
direction | The navigation direction. Specify one of the NAVDIR field values.
|
keyable | If true, only components that are able to receive keyboard input can be navigated to; otherwise, all components can be navigated to.
|