|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.accessibility.AccessibleContext
java.awt.Component.AccessibleAWTComponent
java.awt.Container.AccessibleAWTContainer
javax.swing.JComponent.AccessibleJComponent
javax.swing.JList.AccessibleJList
protected class JList.AccessibleJList
Provides accessibility support for JList
.
Nested Class Summary | |
---|---|
protected class |
JList.AccessibleJList.AccessibleJListChild
Provides accessibility support for list elements in JList s. |
Nested classes/interfaces inherited from class javax.swing.JComponent.AccessibleJComponent |
---|
JComponent.AccessibleJComponent.AccessibleContainerHandler, JComponent.AccessibleJComponent.AccessibleFocusHandler |
Nested classes/interfaces inherited from class java.awt.Component.AccessibleAWTComponent |
---|
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent.AccessibleJComponent |
---|
accessibleContainerHandler, accessibleFocusHandler |
Fields inherited from class java.awt.Component.AccessibleAWTComponent |
---|
accessibleAWTComponentHandler, accessibleAWTFocusHandler |
Constructor Summary | |
---|---|
JList.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. |
Methods inherited from class javax.swing.JComponent.AccessibleJComponent |
---|
addPropertyChangeListener, getAccessibleDescription, getAccessibleKeyBinding, getAccessibleName, getBorderTitle, getTitledBorderText, getToolTipText, removePropertyChangeListener |
Methods inherited from class javax.accessibility.AccessibleContext |
---|
firePropertyChange, getAccessibleAction, getAccessibleEditableText, getAccessibleIcon, getAccessibleRelationSet, getAccessibleSelection, getAccessibleTable, getAccessibleText, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.accessibility.AccessibleComponent |
---|
addFocusListener, contains, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocation, getLocationOnScreen, getSize, isEnabled, isFocusTraversable, isShowing, isVisible, removeFocusListener, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisible |
Constructor Detail |
---|
public JList.AccessibleJList()
Method Detail |
---|
public int getAccessibleSelectionCount()
getAccessibleSelectionCount
in interface AccessibleSelection
public Accessible getAccessibleSelection(int n)
getAccessibleSelection
in interface AccessibleSelection
n
- the index of the selected child to return
AccessibleSelection.getAccessibleSelectionCount()
public boolean isAccessibleChildSelected(int n)
true
if the n-th child is selected,
false
otherwise.
isAccessibleChildSelected
in interface AccessibleSelection
n
- the index of the child of which the selected state is queried
true
if the n-th child is selected,
false
otherwisepublic void addAccessibleSelection(int i)
addAccessibleSelection
in interface AccessibleSelection
i
- the index of the item to add to the selectionpublic void removeAccessibleSelection(int i)
removeAccessibleSelection
in interface AccessibleSelection
i
- the index of the item to be removed from the selectionpublic void clearAccessibleSelection()
clearAccessibleSelection
in interface AccessibleSelection
public void selectAllAccessibleSelection()
selectAllAccessibleSelection
in interface AccessibleSelection
public void valueChanged(ListSelectionEvent event)
AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY
and the second
with AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY
.
valueChanged
in interface ListSelectionListener
event
- the list selection eventpublic void contentsChanged(ListDataEvent event)
JList
. This method fires a property change event with
AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY
.
contentsChanged
in interface ListDataListener
event
- the list data eventpublic void intervalAdded(ListDataEvent event)
JList
. This method fires a property change event with
AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY
.
intervalAdded
in interface ListDataListener
event
- the list data eventpublic void intervalRemoved(ListDataEvent event)
JList
. This method fires a property change event with
AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY
.
intervalRemoved
in interface ListDataListener
event
- the list data eventpublic void propertyChange(PropertyChangeEvent e)
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.
propertyChange
in interface PropertyChangeListener
e
- the property change eventpublic AccessibleStateSet getAccessibleStateSet()
JList
.
getAccessibleStateSet
in class JComponent.AccessibleJComponent
JList
AccessibleState
public AccessibleRole getAccessibleRole()
JList
,
AccessibleRole.LIST
.
getAccessibleRole
in class JComponent.AccessibleJComponent
JList
AccessibleRole
public Accessible getAccessibleAt(Point p)
p
(relative to the upper left corner of the JList
). If there
is no child at that location, this returns null
.
getAccessibleAt
in interface AccessibleComponent
getAccessibleAt
in class Container.AccessibleAWTContainer
p
- the screen location for which to return the accessible child
null
if there is no child at that locationpublic int getAccessibleChildrenCount()
JList
.
getAccessibleChildrenCount
in class JComponent.AccessibleJComponent
JList
AccessibleContext.getAccessibleChild(int)
public Accessible getAccessibleChild(int n)
JList
. This will
be an instance of JList.AccessibleJList.AccessibleJListChild
. If there is no child
at that index, null
is returned.
getAccessibleChild
in class JComponent.AccessibleJComponent
n
- the index of the child to return
JList
Component.AccessibleAWTComponent.getAccessibleChildrenCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |