|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.accservice.core.win32.msaa.MsaaAccessible
org.eclipse.actf.accservice.core.win32.ia2.IA2Accessible
public class IA2Accessible
implementation of IAccessibleElement
for GUI controls that implement IAccessible2/IBM interfaces.
This class is a wrapper for an IAccessible2 pointer, a pointer that Provides access to a native Windows object that provides assistive technologies (ATs) with properties of GUI components that allow the AT to offer an alternative interface to the control. This class relies upon JCAccessible.dll for most of its implementation. The documentation for the Microsoft COM library and, in particular, for IAccessible2/IBM will be helpful.
Field Summary |
---|
Fields inherited from class org.eclipse.actf.accservice.core.win32.msaa.MsaaAccessible |
---|
accRef, childId, childId_self, element, highLightEnabled, hwnd, indexInParent, SWT_ACC_TYPENAME, SWT_CTRL_TYPENAME, SWT_WIDGET_TYPENAME |
Constructor Summary | |
---|---|
IA2Accessible(int ref)
create an IA2Accessible element based on a reference pointer |
|
IA2Accessible(int hwnd,
int childID)
construct an IA2Accessible from a window handle. |
|
IA2Accessible(Object control)
create an IA2Accessible element from the given control. |
|
IA2Accessible(Point location)
create an IA2Accessible element by utilizing the MSAA function AccessibleObjectFromPoint . |
Method Summary | |
---|---|
boolean |
doDefaultAction()
|
boolean |
equals(Object other)
|
protected void |
finalize()
|
Object |
getAccessibleAction()
return the default action |
IA2AccessibleApplication |
getAccessibleApplication()
|
String |
getAccessibleAttributes()
|
IAccessibleElement |
getAccessibleChild(int childID)
return the child with the given ID. |
IAccessibleElement[] |
getAccessibleChildren()
return all of the children of this MsaaAccessible. |
IA2AccessibleComponent |
getAccessibleComponent()
|
IAccessibleEditableTextElement |
getAccessibleEditableText()
get the accessible Editable Text for this object |
String |
getAccessibleExtendedRole()
|
int |
getAccessibleExtendedStateCount()
|
Set |
getAccessibleExtendedStates()
|
List |
getAccessibleGroupPosition()
|
IA2AccessibleHyperlink |
getAccessibleHyperlink()
|
IA2AccessibleHypertext |
getAccessibleHypertext()
|
IAccessibleImageElement[] |
getAccessibleImage()
get the accessible image elements for this object |
int |
getAccessibleIndexInParent()
retreave the index of this accessible within its parent accessible |
Locale |
getAccessibleLocale()
|
String |
getAccessibleLocalizedExtendedRole()
|
Set |
getAccessibleLocalizedExtendedStates()
|
IAccessibleElement |
getAccessibleParent()
returns the parent accessible object. |
Map |
getAccessibleRelation(int relationIndex)
|
int |
getAccessibleRelationCount()
|
Map |
getAccessibleRelations()
get the relations for this accessible element. |
String |
getAccessibleRole()
return role or function of control. Note: All attempts will be made to
return one of the pre-defined role constants in |
Set |
getAccessibleState()
return the state of the control. Note that the returned string may contain several states separated by commas. Note: All attempts will be made to
return one of the pre-defined state constants in |
Set |
getAccessibleStates()
|
IAccessibleTableElement |
getAccessibleTable()
get the accessible table element for this object |
IAccessibleTextElement |
getAccessibleText()
get the accessible text element for this object |
Object |
getAccessibleValue()
return the value (e.g. of a scroll bar or combo) |
int |
getAccessibleWindowHandle()
|
static int |
getIA2FromIAcc(IAccessibleElement accElem)
|
int |
getUniqueID()
|
protected void |
initFromHtmlElement(int htmlElemRef)
|
protected void |
initFromHwnd(int hwnd,
int childID)
|
protected void |
initFromPoint(int x,
int y)
|
protected int |
internalGetAccessibleAction2()
|
protected int |
internalGetAccessibleApplication()
|
protected int |
internalGetAccessibleComponent()
|
protected int |
internalGetAccessibleEditableText()
|
protected int |
internalGetAccessibleHyperLink()
|
protected int |
internalGetAccessibleHyperText()
|
protected int[] |
internalGetAccessibleImage()
|
protected String |
internalGetAccessibleRelation(int relationIndex)
|
protected String[] |
internalGetAccessibleRelations(int maxRelations)
|
protected String |
internalGetAccessibleRole()
|
protected long |
internalGetAccessibleRoleAsLong()
|
protected long |
internalGetAccessibleStateAsLong()
|
protected int |
internalGetAccessibleTable()
|
protected int |
internalGetAccessibleText()
|
protected int |
internalGetAccessibleValue2()
|
protected int |
internalGetAccParent()
|
protected int |
internalGetAddress()
|
protected String |
internalGetAttributes()
|
protected int |
internalGetChildId()
|
protected String |
internalGetExtendedRole()
|
protected int |
internalGetExtendedStateCount()
|
protected String[] |
internalGetExtendedStates(int maxExtendedStates)
|
protected int[] |
internalGetGroupPosition()
|
protected int |
internalGetIA2AccessibleChild(int childID)
|
protected int[] |
internalGetIA2AccessibleChildren()
|
protected static int |
internalGetIA2fromIAcc(int iacc)
|
protected int |
internalGetIndexInParent()
|
protected String[] |
internalGetLocale()
|
protected String |
internalGetLocalizedExtendedRole()
|
protected String[] |
internalGetLocalizedExtendedStates(int maxLocalizedExtendedStates)
|
protected int |
internalGetNRelations()
|
protected int |
internalGetStates()
|
protected int |
internalGetUniqueID()
|
protected int |
internalGetWindowHandle()
|
protected static int |
internalInitFromHtmlElement(int htmlElemRef)
|
protected static int |
internalInitFromHwnd(int hwnd,
int childID)
|
protected static int |
internalInitFromPoint(int x,
int y)
|
protected static boolean |
internalIsIA2Accessible(int iacc)
|
protected boolean |
internalScrollTo(int topLeft)
|
protected boolean |
internalScrollToPoint(int coordinateType,
int x,
int y)
|
static boolean |
isIA2Accessible(IAccessibleElement accElem)
|
boolean |
scrollTo(int topLeft)
|
boolean |
scrollToPoint(int coordinateType,
Point pt)
|
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.actf.accservice.core.IAccessibleElement |
---|
checkIsValid, element, getAccessibleChildCount, getAccessibleDescription, getAccessibleKeyboardShortcut, getAccessibleLocation, getAccessibleName, getAccessibleSelection |
Constructor Detail |
---|
public IA2Accessible(int hwnd, int childID)
ACC.CHILDID_SELF
.
hwnd
- -
window handle for an SWT controlchildID
- -
child ID (if any)public IA2Accessible(Object control)
IHTMLElement
interface
control
- public IA2Accessible(Point location)
AccessibleObjectFromPoint
.
location
- - any location on the current display devicepublic IA2Accessible(int ref)
ref
- - reference pointMethod Detail |
---|
protected void initFromHwnd(int hwnd, int childID)
initFromHwnd
in class MsaaAccessible
protected void initFromPoint(int x, int y)
initFromPoint
in class MsaaAccessible
protected void initFromHtmlElement(int htmlElemRef)
initFromHtmlElement
in class MsaaAccessible
protected int internalGetWindowHandle()
internalGetWindowHandle
in class MsaaAccessible
protected int internalGetChildId()
internalGetChildId
in class MsaaAccessible
protected static int internalInitFromHwnd(int hwnd, int childID)
protected static int internalInitFromHtmlElement(int htmlElemRef)
protected static int internalInitFromPoint(int x, int y)
public IAccessibleElement getAccessibleParent() throws InvalidComponentException
getAccessibleParent
in interface IAccessibleElement
getAccessibleParent
in class MsaaAccessible
null
if no parent for this element exists
InvalidComponentException
protected int internalGetAccParent()
public IAccessibleElement[] getAccessibleChildren() throws InvalidComponentException
MsaaAccessible
getAccessibleChildren
in interface IAccessibleElement
getAccessibleChildren
in class MsaaAccessible
InvalidComponentException
protected int[] internalGetIA2AccessibleChildren()
public IAccessibleElement getAccessibleChild(int childID) throws InvalidComponentException
getAccessibleChild
in class MsaaAccessible
childID
- ID of desired child
InvalidComponentException
protected int internalGetIA2AccessibleChild(int childID)
public Object getAccessibleValue() throws InvalidComponentException
getAccessibleValue
in interface IAccessibleElement
getAccessibleValue
in class MsaaAccessible
InvalidComponentException
protected int internalGetAccessibleValue2()
public IA2AccessibleApplication getAccessibleApplication() throws InvalidComponentException
InvalidComponentException
protected int internalGetAccessibleApplication()
public Object getAccessibleAction() throws InvalidComponentException
MsaaAccessible
getAccessibleAction
in interface IAccessibleElement
getAccessibleAction
in class MsaaAccessible
null
if no default action is provided
InvalidComponentException
protected int internalGetAccessibleAction2()
public IA2AccessibleComponent getAccessibleComponent() throws InvalidComponentException
InvalidComponentException
protected int internalGetAccessibleComponent()
public IA2AccessibleHypertext getAccessibleHypertext() throws InvalidComponentException
InvalidComponentException
protected int internalGetAccessibleHyperText()
public IA2AccessibleHyperlink getAccessibleHyperlink() throws InvalidComponentException
InvalidComponentException
protected int internalGetAccessibleHyperLink()
public IAccessibleTableElement getAccessibleTable() throws InvalidComponentException
getAccessibleTable
in interface IAccessibleElement2
null
if no table is available
InvalidComponentException
protected int internalGetAccessibleTable()
public IAccessibleTextElement getAccessibleText() throws InvalidComponentException
getAccessibleText
in interface IAccessibleElement2
null
if no text is available
InvalidComponentException
protected int internalGetAccessibleText()
public IAccessibleImageElement[] getAccessibleImage() throws InvalidComponentException
getAccessibleImage
in interface IAccessibleElement2
InvalidComponentException
protected int[] internalGetAccessibleImage()
public String getAccessibleRole() throws InvalidComponentException
Note: All attempts will be made to
return one of the pre-defined role constants in AccessibleConstants
. Should the role be
unknown or not match one of the pre-defined constants, the original
role string from the underlying accessibility model will be returned.
getAccessibleRole
in interface IAccessibleElement
getAccessibleRole
in class MsaaAccessible
InvalidComponentException
AccessibleConstants
protected long internalGetAccessibleRoleAsLong()
protected String internalGetAccessibleRole()
internalGetAccessibleRole
in class MsaaAccessible
public Set getAccessibleState() throws InvalidComponentException
Note: All attempts will be made to
return one of the pre-defined state constants in AccessibleConstants
. Should the state be
unknown or not match one of the pre-defined constants, the original
state from the underlying accessibility model will be returned.
getAccessibleState
in interface IAccessibleElement
getAccessibleState
in class MsaaAccessible
InvalidComponentException
AccessibleConstants
protected long internalGetAccessibleStateAsLong()
public static boolean isIA2Accessible(IAccessibleElement accElem)
public static int getIA2FromIAcc(IAccessibleElement accElem)
protected int internalGetAddress()
internalGetAddress
in class MsaaAccessible
protected static boolean internalIsIA2Accessible(int iacc)
protected static int internalGetIA2fromIAcc(int iacc)
public IAccessibleEditableTextElement getAccessibleEditableText() throws InvalidComponentException
IAccessibleElement2
getAccessibleEditableText
in interface IAccessibleElement2
null
if no EditableText is available
InvalidComponentException
protected int internalGetAccessibleEditableText()
public int getAccessibleRelationCount() throws InvalidComponentException
InvalidComponentException
protected int internalGetNRelations()
public Map getAccessibleRelation(int relationIndex) throws InvalidComponentException
InvalidComponentException
protected String internalGetAccessibleRelation(int relationIndex)
public Map getAccessibleRelations() throws InvalidComponentException
IAccessibleElement
objects.
Note: All attempts will be made to use keys
that match one of the pre-defined relation constants in AccessibleConstants
. Should the relation type be
unknown or not match one of the pre-defined constants, the original
relationship type from the underlying accessibility model will be returned.
getAccessibleRelations
in interface IAccessibleElement2
InvalidComponentException
protected String[] internalGetAccessibleRelations(int maxRelations)
public boolean scrollTo(int topLeft) throws InvalidComponentException
InvalidComponentException
protected boolean internalScrollTo(int topLeft)
public boolean scrollToPoint(int coordinateType, Point pt) throws InvalidComponentException
InvalidComponentException
protected boolean internalScrollToPoint(int coordinateType, int x, int y)
public List getAccessibleGroupPosition() throws InvalidComponentException
InvalidComponentException
protected int[] internalGetGroupPosition()
public Set getAccessibleStates() throws InvalidComponentException
InvalidComponentException
protected int internalGetStates()
public String getAccessibleExtendedRole() throws InvalidComponentException
InvalidComponentException
protected String internalGetExtendedRole()
public String getAccessibleLocalizedExtendedRole() throws InvalidComponentException
InvalidComponentException
protected String internalGetLocalizedExtendedRole()
public int getAccessibleExtendedStateCount() throws InvalidComponentException
InvalidComponentException
protected int internalGetExtendedStateCount()
public Set getAccessibleExtendedStates() throws InvalidComponentException
InvalidComponentException
protected String[] internalGetExtendedStates(int maxExtendedStates)
public Set getAccessibleLocalizedExtendedStates() throws InvalidComponentException
InvalidComponentException
protected String[] internalGetLocalizedExtendedStates(int maxLocalizedExtendedStates)
public int getUniqueID() throws InvalidComponentException
InvalidComponentException
protected int internalGetUniqueID()
public int getAccessibleWindowHandle() throws InvalidComponentException
InvalidComponentException
public int getAccessibleIndexInParent() throws InvalidComponentException
MsaaAccessible
getAccessibleIndexInParent
in interface IAccessibleElement
getAccessibleIndexInParent
in class MsaaAccessible
InvalidComponentException
protected int internalGetIndexInParent()
public Locale getAccessibleLocale() throws InvalidComponentException
InvalidComponentException
protected String[] internalGetLocale()
public String getAccessibleAttributes() throws InvalidComponentException
InvalidComponentException
protected String internalGetAttributes()
public boolean equals(Object other)
equals
in class MsaaAccessible
public boolean doDefaultAction() throws InvalidComponentException
doDefaultAction
in class MsaaAccessible
InvalidComponentException
protected void finalize() throws Throwable
finalize
in class MsaaAccessible
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |