|
JavaTM 2 Platform Std. Ed. v1.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This AccessibleSelection interface
provides the standard mechanism for an assistive technology to determine
what the current selected children are, as well as modify the selection set.
Any object that has children that can be selected should support
the AccessibleSelection interface. Applications can determine if an object supports the
AccessibleSelection interface by first obtaining its AccessibleContext (see
Accessible
) and then calling the
AccessibleContext.getAccessibleSelection()
method.
If the return value is not null, the object supports this interface.
Accessible
,
Accessible.getAccessibleContext()
,
AccessibleContext
,
AccessibleContext.getAccessibleSelection()
Method Summary | |
void |
addAccessibleSelection(int i)
Adds the specified Accessible child of the object to the object's selection. |
void |
clearAccessibleSelection()
Clears the selection in the object, so that no children in the object are selected. |
Accessible |
getAccessibleSelection(int i)
Returns an Accessible representing the specified selected child of the object. |
int |
getAccessibleSelectionCount()
Returns the number of Accessible children currently selected. |
boolean |
isAccessibleChildSelected(int i)
Determines if the current child of this object is selected. |
void |
removeAccessibleSelection(int i)
Removes the specified child of the object from the object's selection. |
void |
selectAllAccessibleSelection()
Causes every child of the object to be selected if the object supports multiple selections. |
Method Detail |
public int getAccessibleSelectionCount()
public Accessible getAccessibleSelection(int i)
Note that the index represents the i-th selected child, which is different from the i-th child.
i
- the zero-based index of selected children
getAccessibleSelectionCount()
public boolean isAccessibleChildSelected(int i)
i
- the zero-based index of the child in this Accessible object.
AccessibleContext.getAccessibleChild(int)
public void addAccessibleSelection(int i)
i
- the zero-based index of the childAccessibleContext.getAccessibleChild(int)
public void removeAccessibleSelection(int i)
i
- the zero-based index of the childAccessibleContext.getAccessibleChild(int)
public void clearAccessibleSelection()
public void selectAllAccessibleSelection()
|
JavaTM 2 Platform Std. Ed. v1.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.