|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.accservice.javapp.JavaAccessible
public class JavaAccessible
implementation for the Java Swing Accesibility API's Accessible
. All methods are passed onto
the underlying AccessibleContext
object.
Accessible
Constructor Summary | |
---|---|
JavaAccessible(Object comp)
wrap the given object as a ACTF IAccessibleElement . |
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 |
boolean |
equals(Object other)
|
Object |
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 |
IAccessibleEditableTextElement |
getAccessibleEditableText()
get the accessible Editable Text for this object |
IAccessibleImageElement[] |
getAccessibleImage()
get the accessible image elements for this object |
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 |
getAccessibleRelations()
get the relations for this accessible element. |
String |
getAccessibleRole()
return role or function of control. |
IAccessibleElement[] |
getAccessibleSelection()
get the list of selected accessibles. |
Set |
getAccessibleState()
return the state of the control. |
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) |
String |
getAccessibleValueMax()
|
String |
getAccessibleValueMin()
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaAccessible(Object comp)
IAccessibleElement
. The
ACTF engine will invoke this constructor using a registered adaptor factory. Clients do not
typically call this constructor.
comp
- Method Detail |
---|
public void checkIsValid() throws InvalidComponentException
Accessing properties of invalid accessible elements will raise an
InvalidComponentException
.
checkIsValid
in interface IAccessibleElement
InvalidComponentException
public Object 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
getAccessibleDescription
in interface IAccessibleElement
InvalidComponentException
public Object element()
IAccessibleElement
element
in interface IAccessibleElement
null
if this object was not initialized in such a way that the original element is availablepublic 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 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
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 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 Object getAccessibleValue() throws InvalidComponentException
getAccessibleValue
in interface IAccessibleElement
InvalidComponentException
public String getAccessibleValueMin() throws InvalidComponentException
InvalidComponentException
public String getAccessibleValueMax() throws InvalidComponentException
InvalidComponentException
public IAccessibleTableElement getAccessibleTable() throws InvalidComponentException
getAccessibleTable
in interface IAccessibleElement2
null
if no table is available
InvalidComponentException
public IAccessibleTextElement getAccessibleText() throws InvalidComponentException
getAccessibleText
in interface IAccessibleElement2
null
if no text is available
InvalidComponentException
public IAccessibleImageElement[] getAccessibleImage() throws InvalidComponentException
getAccessibleImage
in interface IAccessibleElement2
InvalidComponentException
public IAccessibleEditableTextElement getAccessibleEditableText() throws InvalidComponentException
IAccessibleElement2
getAccessibleEditableText
in interface IAccessibleElement2
null
if no EditableText is available
InvalidComponentException
public Rectangle getAccessibleLocation() throws InvalidComponentException
IAccessibleElement
getAccessibleLocation
in interface IAccessibleElement
InvalidComponentException
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |