javax.accessibility
Interface AccessibleSelection

All Known Implementing Classes:
java.awt.List.AccessibleAWTList, java.awt.MenuComponent.AccessibleAWTMenuComponent, javax.swing.JComboBox.AccessibleJComboBox, javax.swing.JList.AccessibleJList, javax.swing.JMenu.AccessibleJMenu, javax.swing.JMenuBar.AccessibleJMenuBar, javax.swing.JTabbedPane.AccessibleJTabbedPane, javax.swing.JTable.AccessibleJTable, javax.swing.JTree.AccessibleJTree, javax.swing.JTree.AccessibleJTree.AccessibleJTreeNode

public interface AccessibleSelection

Untamed:


Method Summary
 void addAccessibleSelection(int i)
          Enabled: Adds the specified Accessible child of the object to the object's selection.
 void clearAccessibleSelection()
          Enabled: Clears the selection in the object, so that no children in the object are selected.
 Accessible getAccessibleSelection(int i)
          Enabled: Returns an Accessible representing the specified selected child of the object.
 int getAccessibleSelectionCount()
          Enabled: Returns the number of Accessible children currently selected.
 boolean isAccessibleChildSelected(int i)
          Enabled: Determines if the current child of this object is selected.
 void removeAccessibleSelection(int i)
          Enabled: Removes the specified child of the object from the object's selection.
 void selectAllAccessibleSelection()
          Enabled: Causes every child of the object to be selected if the object supports multiple selections.
 

Method Detail

getAccessibleSelectionCount

public int getAccessibleSelectionCount()
Enabled: 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.

getAccessibleSelection

public Accessible getAccessibleSelection(int i)
Enabled: 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
See Also:
getAccessibleSelectionCount()

isAccessibleChildSelected

public boolean isAccessibleChildSelected(int i)
Enabled: 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.
See Also:
AccessibleContext.getAccessibleChild(int)

addAccessibleSelection

public void addAccessibleSelection(int i)
Enabled: 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
See Also:
AccessibleContext.getAccessibleChild(int)

removeAccessibleSelection

public void removeAccessibleSelection(int i)
Enabled: 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
See Also:
AccessibleContext.getAccessibleChild(int)

clearAccessibleSelection

public void clearAccessibleSelection()
Enabled: Clears the selection in the object, so that no children in the object are selected.


selectAllAccessibleSelection

public void selectAllAccessibleSelection()
Enabled: Causes every child of the object to be selected if the object supports multiple selections.



comments?