This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.accessibility
interface AccessibleSelection
- All Known Implementing Classes:
- JComboBox.AccessibleJComboBox, JList.AccessibleJList, JMenu.AccessibleJMenu, JMenuBar.AccessibleJMenuBar, JTabbedPane.AccessibleJTabbedPane, JTable.AccessibleJTable, JTree.AccessibleJTree, JTree.AccessibleJTree.AccessibleJTreeNode, List.AccessibleAWTList, MenuComponent.AccessibleAWTMenuComponent, MenuBar.AccessibleAWTMenuBar, MenuItem.AccessibleAWTMenuItem, CheckboxMenuItem.AccessibleAWTCheckboxMenuItem, Menu.AccessibleAWTMenu, PopupMenu.AccessibleAWTPopupMenu
public interface AccessibleSelection
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
{@link Accessible}) and then calling the
{@link AccessibleContext#getAccessibleSelection} method.
If the return value is not null, the object supports this interface.
Method Summary |
void |
Adds the specified Accessible child of the object to the object's
selection.
|
void |
Clears the selection in the object, so that no children in the
object are selected.
|
Accessible |
Returns an Accessible representing the specified selected child
of the object.
|
int |
Returns the number of Accessible children currently selected.
|
boolean |
Determines if the current child of this object is selected.
|
void |
Removes the specified child of the object from the object's
selection.
|
void |
Causes every child of the object to be selected
if the object supports multiple selections.
|
addAccessibleSelection
public void addAccessibleSelection(int i)
-
Adds the specified Accessible child of the object to the object's
selection. If the object supports multiple selections,
the specified child is added to any existing selection, otherwise
it replaces any existing selection in the object. If the
specified child is already selected, this method has no effect.
- Parameters:
i
- the zero-based index of the child
clearAccessibleSelection
public void clearAccessibleSelection()
-
Clears the selection in the object, so that no children in the
object are selected.
getAccessibleSelection
public Accessible getAccessibleSelection(int i)
-
Returns an Accessible representing the specified selected child
of the object. If there isn't a selection, or there are
fewer children selected than the integer passed in, the return
value will be null.
Note that the index represents the i-th selected child, which
is different from the i-th child.
- Parameters:
i
- the zero-based index of selected children
- Returns:
- the i-th selected child
getAccessibleSelectionCount
public int getAccessibleSelectionCount()
-
Returns the number of Accessible children currently selected.
If no children are selected, the return value will be 0.
- Returns:
- the number of items currently selected.
isAccessibleChildSelected
public boolean isAccessibleChildSelected(int i)
-
Determines if the current child of this object is selected.
- Parameters:
i
- the zero-based index of the child in this Accessible object.
- Returns:
- true if the current child of this object is selected; else false.
removeAccessibleSelection
public void removeAccessibleSelection(int i)
-
Removes the specified child of the object from the object's
selection. If the specified item isn't currently selected, this
method has no effect.
- Parameters:
i
- the zero-based index of the child
selectAllAccessibleSelection
public void selectAllAccessibleSelection()
-
Causes every child of the object to be selected
if the object supports multiple selections.
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.