| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
protected class JList.AccessibleJList extends JComponent.AccessibleJComponent implements AccessibleSelection, PropertyChangeListener, ListSelectionListener, ListDataListener
This class implements accessibility support for the {@code JList} class. It provides an implementation of the Java Accessibility API appropriate to list user-interface elements.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans
package.
Please see {@link java.beans.XMLEncoder}.
Nested Class Summary | |
---|---|
protected class |
This class implements accessibility support appropriate for list children. |
Nested classes/interfaces inherited from class javax.swing.JComponent.AccessibleJComponent |
---|
JComponent.AccessibleJComponent.AccessibleContainerHandler, JComponent.AccessibleJComponent.AccessibleFocusHandler |
Nested classes/interfaces inherited from class java.awt.Container.AccessibleAWTContainer |
---|
Container.AccessibleAWTContainer.AccessibleContainerHandler |
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.Container.AccessibleAWTContainer |
---|
accessibleContainerHandler |
Fields inherited from class java.awt.Component.AccessibleAWTComponent |
---|
accessibleAWTComponentHandler, accessibleAWTFocusHandler |
Constructor Summary | |
---|---|
|
Method Summary | |
---|---|
void |
addAccessibleSelection(int i) Adds the specified selected item in the object to the object's selection. |
void |
Clears the selection in the object, so that nothing in the object is selected. |
void |
List Data Listener contents changed method. |
Accessible |
Returns the Accessible child contained at
the local coordinate Point , if one exists.
|
Accessible |
getAccessibleChild(int i) Return the nth Accessible child of the object. |
int |
Returns the number of accessible children in the object. |
AccessibleRole |
Get the role of this object. |
AccessibleSelection |
Get the AccessibleSelection associated with this object. |
Accessible |
getAccessibleSelection(int i) Returns an Accessible representing the specified selected item in the object. |
int |
Returns the number of items currently selected. |
AccessibleStateSet |
Get the state set of this object. |
void |
List Data Listener interval added method. |
void |
List Data Listener interval removed method. |
boolean |
isAccessibleChildSelected(int i) Returns true if the current child of this object is selected. |
void |
Property Change Listener change method. |
void |
removeAccessibleSelection(int i) Removes the specified selected item in the object from the object's selection. |
void |
Causes every selected item in the object to be selected if the object supports multiple selections. |
void |
List Selection Listener value change method. |
Methods inherited from class java.awt.Container.AccessibleAWTContainer |
---|
addPropertyChangeListener, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JList.AccessibleJList()
Method Detail |
---|
public void addAccessibleSelection(int i)
i
- the zero-based index of selectable itemspublic void clearAccessibleSelection()
public void contentsChanged(ListDataEvent e)
e
- ListDataEventpublic Accessible getAccessibleAt(Point p)
Accessible
child contained at
the local coordinate Point
, if one exists.
Otherwise returns null
.
getAccessibleAt
in class Container.AccessibleAWTContainer
p
Accessible
at the specified
location, if it existspublic Accessible getAccessibleChild(int i)
getAccessibleChild
in class JComponent.AccessibleJComponent
i
- zero-based index of childpublic int getAccessibleChildrenCount()
getAccessibleChildrenCount
in class JComponent.AccessibleJComponent
public AccessibleRole getAccessibleRole()
getAccessibleRole
in class JComponent.AccessibleJComponent
public AccessibleSelection getAccessibleSelection()
getAccessibleSelection
in class AccessibleContext
public Accessible getAccessibleSelection(int i)
null
.
i
- the zero-based index of selected itemspublic int getAccessibleSelectionCount()
public AccessibleStateSet getAccessibleStateSet()
getAccessibleStateSet
in class JComponent.AccessibleJComponent
public void intervalAdded(ListDataEvent e)
e
- ListDataEventpublic void intervalRemoved(ListDataEvent e)
e
- ListDataEventpublic boolean isAccessibleChildSelected(int i)
i
- the zero-based index of the child in this Accessible
object.public void propertyChange(PropertyChangeEvent e)
e
- PropertyChangeEventpublic void removeAccessibleSelection(int i)
i
- the zero-based index of selectable itemspublic void selectAllAccessibleSelection()
public void valueChanged(ListSelectionEvent e)
e
- ListSelectionEvent
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |