|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.accservice.mozdom.MozillaAccessible
public class MozillaAccessible
Constructor Summary | |
---|---|
MozillaAccessible(org.mozilla.interfaces.nsIAccessible acc)
wrap the given object as a ACTF IAccessibleElement . |
|
MozillaAccessible(Object element)
|
Method Summary | |
---|---|
void |
checkIsValid()
checks whether or not this accessible element is in a valid state. |
Object |
element()
get the element associated with this accessible element |
String |
getAccessibleAction()
return the default action |
IAccessibleElement |
getAccessibleChild(int index)
return the child at the given index of this accessible element. |
int |
getAccessibleChildCount()
return the number of children of this element. |
IAccessibleElement[] |
getAccessibleChildren()
return all of the children of this accessible element. |
String |
getAccessibleDescription()
return description or use of control |
int |
getAccessibleIndexInParent()
retreave the index of this accessible within its parent accessible |
String |
getAccessibleKeyboardShortcut()
return the keyboard shortcut or mnemonic |
Rectangle |
getAccessibleLocation()
Gets the bounds of this object in the form of a Rectangle object. |
String |
getAccessibleName()
return the name or short description of this element |
IAccessibleElement |
getAccessibleParent()
returns the parent accessible object. |
Map<Long,org.mozilla.interfaces.nsIAccessible> |
getAccessibleRelations()
|
String |
getAccessibleRole()
return role or function of control. |
IAccessibleElement[] |
getAccessibleSelection()
get the list of selected accessibles. |
Set<String> |
getAccessibleState()
return the state of the control. |
String |
getAccessibleValue()
return the value (e.g. of a scroll bar or combo) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MozillaAccessible(Object element)
public MozillaAccessible(org.mozilla.interfaces.nsIAccessible acc)
IAccessibleElement
. The
ACTF engine will invoke this constructor using a registered adaptor factory. Clients do not
typically call this constructor.
acc
- Method Detail |
---|
public void checkIsValid() throws InvalidComponentException
Accessing properties of invalid accessible elements will raise an
InvalidComponentException
.
checkIsValid
in interface IAccessibleElement
InvalidComponentException
public String getAccessibleAction() throws InvalidComponentException
getAccessibleAction
in interface IAccessibleElement
null
if no default action is provided
InvalidComponentException
public int getAccessibleChildCount() throws InvalidComponentException
getAccessibleChildCount
in interface IAccessibleElement
InvalidComponentException
public IAccessibleElement[] getAccessibleChildren() throws InvalidComponentException
getAccessibleChildren
in interface IAccessibleElement
InvalidComponentException
public IAccessibleElement getAccessibleChild(int index) throws InvalidComponentException
getAccessibleChild
in interface IAccessibleElement
InvalidComponentException
public String getAccessibleDescription() throws InvalidComponentException
IAccessibleElement
getAccessibleDescription
in interface IAccessibleElement
InvalidComponentException
public String getAccessibleKeyboardShortcut() throws InvalidComponentException
getAccessibleKeyboardShortcut
in interface IAccessibleElement
InvalidComponentException
public String getAccessibleName() throws InvalidComponentException
getAccessibleName
in interface IAccessibleElement
InvalidComponentException
public IAccessibleElement getAccessibleParent() throws InvalidComponentException
getAccessibleParent
in interface IAccessibleElement
null
if no parent for this element exists
InvalidComponentException
public int getAccessibleIndexInParent() throws InvalidComponentException
getAccessibleIndexInParent
in interface IAccessibleElement
InvalidComponentException
public Map<Long,org.mozilla.interfaces.nsIAccessible> getAccessibleRelations() throws InvalidComponentException
InvalidComponentException
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
InvalidComponentException
AccessibleConstants
public IAccessibleElement[] getAccessibleSelection() throws InvalidComponentException
getAccessibleSelection
in interface IAccessibleElement
InvalidComponentException
public Set<String> 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
InvalidComponentException
AccessibleConstants
public String getAccessibleValue() throws InvalidComponentException
getAccessibleValue
in interface IAccessibleElement
InvalidComponentException
public Object element()
element
in interface IAccessibleElement
null
if this object was not initialized in such a way that the original element is availablepublic Rectangle getAccessibleLocation() throws InvalidComponentException
IAccessibleElement
getAccessibleLocation
in interface IAccessibleElement
InvalidComponentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |