javax.swing
protected class JList.AccessibleJList extends AccessibleJComponent implements AccessibleSelection, PropertyChangeListener, ListSelectionListener, ListDataListener
JList.
| Nested Class Summary | |
|---|---|
| protected class | JList.AccessibleJList.AccessibleJListChild
Provides accessibility support for list elements in JLists. |
| Constructor Summary | |
|---|---|
| AccessibleJList()
Create a new AccessibleJList. | |
| Method Summary | |
|---|---|
| void | addAccessibleSelection(int i)
Adds the accessible item with the specified index to the selected items.
|
| void | clearAccessibleSelection()
Remove all selection items from the selection. |
| void | contentsChanged(ListDataEvent event)
Receives notification when items have changed in the
JList. |
| Accessible | getAccessibleAt(Point p)
Returns the accessible child at the visual location p
(relative to the upper left corner of the JList). |
| Accessible | getAccessibleChild(int n)
Returns the n-th accessible child of this JList. |
| int | getAccessibleChildrenCount()
Returns the number of accessible children in the JList.
|
| AccessibleRole | getAccessibleRole()
Returns the accessible role for JList,
AccessibleRole#LIST.
|
| Accessible | getAccessibleSelection(int n)
Returns the n-th selected accessible child.
|
| int | getAccessibleSelectionCount()
Returns the number of selected accessible children.
|
| AccessibleStateSet | getAccessibleStateSet()
Return the state set of the JList.
|
| void | intervalAdded(ListDataEvent event)
Receives notification when items are inserted into the
JList. |
| void | intervalRemoved(ListDataEvent event)
Receives notification when items are removed from the
JList. |
| boolean | isAccessibleChildSelected(int n)
Returns true if the n-th child is selected,
false otherwise.
|
| void | propertyChange(PropertyChangeEvent e)
Receives notification about changes of the JList's
properties. |
| void | removeAccessibleSelection(int i)
Removes the accessible item with the specified index to the selection.
|
| void | selectAllAccessibleSelection()
Selects all items if multiple selections are supported.
|
| void | valueChanged(ListSelectionEvent event)
Receices notification when the list selection is changed. |
Parameters: i the index of the item to add to the selection
JList. This method fires a property change event with
AccessibleContext#ACCESSIBLE_VISIBLE_DATA_PROPERTY.
Parameters: event the list data event
p
(relative to the upper left corner of the JList). If there
is no child at that location, this returns null.
Parameters: p the screen location for which to return the accessible child
Returns: the accessible child at the specified location, or
null if there is no child at that location
JList. This will
be an instance of AccessibleJListChild. If there is no child
at that index, null is returned.
Parameters: n the index of the child to return
Returns: the n-th accessible child of this JList
JList.
Returns: the number of accessible children in the JList
JList,
AccessibleRole#LIST.
Returns: the accessible role for JList
Parameters: n the index of the selected child to return
Returns: the n-th selected accessible child
Returns: the number of selected accessible children
JList.
Returns: the state set of the JList
JList. This method fires a property change event with
AccessibleContext#ACCESSIBLE_VISIBLE_DATA_PROPERTY.
Parameters: event the list data event
JList. This method fires a property change event with
AccessibleContext#ACCESSIBLE_VISIBLE_DATA_PROPERTY.
Parameters: event the list data event
true if the n-th child is selected,
false otherwise.
Parameters: n the index of the child of which the selected state is queried
Returns: true if the n-th child is selected,
false otherwise
JList's
properties. This is used to re-register this object as listener to
the data model and selection model when the data model or selection model
changes.
Parameters: e the property change event
Parameters: i the index of the item to be removed from the selection
Parameters: event the list selection event