|
|||||||||
| Home >> All >> javax >> [ swing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.swing
Class JList.AccessibleJList

java.lang.Objectjavax.accessibility.AccessibleContext
java.awt.Component.AccessibleAWTComponent
java.awt.Container.AccessibleAWTContainer
javax.swing.JComponent.AccessibleJComponent
javax.swing.JList.AccessibleJList
- All Implemented Interfaces:
- javax.accessibility.AccessibleComponent, javax.accessibility.AccessibleExtendedComponent, javax.accessibility.AccessibleSelection, java.util.EventListener, javax.swing.event.ListDataListener, javax.swing.event.ListSelectionListener, java.beans.PropertyChangeListener, java.io.Serializable
- Enclosing class:
- JList
- protected class JList.AccessibleJList
- extends JComponent.AccessibleJComponent
- implements javax.accessibility.AccessibleSelection, java.beans.PropertyChangeListener, javax.swing.event.ListSelectionListener, javax.swing.event.ListDataListener
- extends JComponent.AccessibleJComponent
Provides accessibility support for JList.
| Nested Class Summary | |
protected class |
JList.AccessibleJList.AccessibleJListChild
Provides accessibility support for list elements in JLists. |
| Nested classes inherited from class javax.swing.JComponent.AccessibleJComponent |
JComponent.AccessibleJComponent.AccessibleContainerHandler, JComponent.AccessibleJComponent.AccessibleFocusHandler |
| Nested classes inherited from class java.awt.Component.AccessibleAWTComponent |
java.awt.Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, java.awt.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(javax.swing.event.ListDataEvent event)
Receives notification when items have changed in the JList. |
javax.accessibility.Accessible |
getAccessibleAt(java.awt.Point p)
Returns the accessible child at the visual location p
(relative to the upper left corner of the JList). |
javax.accessibility.Accessible |
getAccessibleChild(int n)
Returns the n-th accessible child of this JList. |
int |
getAccessibleChildrenCount()
Returns the number of accessible children in the JList. |
javax.accessibility.AccessibleRole |
getAccessibleRole()
Returns the accessible role for JList,
AccessibleRole.LIST>AccessibleRole.LIST 55 . |
javax.accessibility.Accessible |
getAccessibleSelection(int n)
Returns the n-th selected accessible child. |
int |
getAccessibleSelectionCount()
Returns the number of selected accessible children. |
javax.accessibility.AccessibleStateSet |
getAccessibleStateSet()
Return the state set of the JList. |
void |
intervalAdded(javax.swing.event.ListDataEvent event)
Receives notification when items are inserted into the JList. |
void |
intervalRemoved(javax.swing.event.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(java.beans.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(javax.swing.event.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 java.awt.Component.AccessibleAWTComponent |
addFocusListener, contains, getAccessibleComponent, getAccessibleIndexInParent, getAccessibleParent, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocale, getLocation, getLocationOnScreen, getSize, isEnabled, isFocusTraversable, isShowing, isVisible, removeFocusListener, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisible |
| 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 |
JList.AccessibleJList
public JList.AccessibleJList()
- Create a new AccessibleJList.
| Method Detail |
getAccessibleSelectionCount
public int getAccessibleSelectionCount()
- Returns the number of selected accessible children.
- Specified by:
getAccessibleSelectionCountin interfacejavax.accessibility.AccessibleSelection
getAccessibleSelection
public javax.accessibility.Accessible getAccessibleSelection(int n)
- Returns the n-th selected accessible child.
- Specified by:
getAccessibleSelectionin interfacejavax.accessibility.AccessibleSelection
isAccessibleChildSelected
public boolean isAccessibleChildSelected(int n)
- Returns
trueif the n-th child is selected,falseotherwise.- Specified by:
isAccessibleChildSelectedin interfacejavax.accessibility.AccessibleSelection
addAccessibleSelection
public void addAccessibleSelection(int i)
- Adds the accessible item with the specified index to the selected items.
If multiple selections are supported, the item is added to the selection,
otherwise the item replaces the current selection.
- Specified by:
addAccessibleSelectionin interfacejavax.accessibility.AccessibleSelection
removeAccessibleSelection
public void removeAccessibleSelection(int i)
- Removes the accessible item with the specified index to the selection.
- Specified by:
removeAccessibleSelectionin interfacejavax.accessibility.AccessibleSelection
clearAccessibleSelection
public void clearAccessibleSelection()
- Remove all selection items from the selection.
- Specified by:
clearAccessibleSelectionin interfacejavax.accessibility.AccessibleSelection
selectAllAccessibleSelection
public void selectAllAccessibleSelection()
- Selects all items if multiple selections are supported.
Otherwise do nothing.
- Specified by:
selectAllAccessibleSelectionin interfacejavax.accessibility.AccessibleSelection
valueChanged
public void valueChanged(javax.swing.event.ListSelectionEvent event)
- Receices notification when the list selection is changed. This method
fires two property change events, the first with
AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY>
AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY55 and the second with AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY>AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY55 .- Specified by:
valueChangedin interfacejavax.swing.event.ListSelectionListener
contentsChanged
public void contentsChanged(javax.swing.event.ListDataEvent event)
- Receives notification when items have changed in the
JList. This method fires a property change event with AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY>AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY55 .- Specified by:
contentsChangedin interfacejavax.swing.event.ListDataListener
intervalAdded
public void intervalAdded(javax.swing.event.ListDataEvent event)
- Receives notification when items are inserted into the
JList. This method fires a property change event with AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY>AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY55 .- Specified by:
intervalAddedin interfacejavax.swing.event.ListDataListener
intervalRemoved
public void intervalRemoved(javax.swing.event.ListDataEvent event)
- Receives notification when items are removed from the
JList. This method fires a property change event with AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY>AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY55 .- Specified by:
intervalRemovedin interfacejavax.swing.event.ListDataListener
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Receives notification about changes of the
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.- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener
getAccessibleStateSet
public javax.accessibility.AccessibleStateSet getAccessibleStateSet()
- Return the state set of the
JList.- Overrides:
getAccessibleStateSetin classJComponent.AccessibleJComponent
getAccessibleRole
public javax.accessibility.AccessibleRole getAccessibleRole()
- Returns the accessible role for
JList, AccessibleRole.LIST>AccessibleRole.LIST55 .- Overrides:
getAccessibleRolein classJComponent.AccessibleJComponent
getAccessibleAt
public javax.accessibility.Accessible getAccessibleAt(java.awt.Point p)
- Returns the accessible child at the visual location
p(relative to the upper left corner of theJList). If there is no child at that location, this returnsnull.- Specified by:
getAccessibleAtin interfacejavax.accessibility.AccessibleComponent
getAccessibleChildrenCount
public int getAccessibleChildrenCount()
- Returns the number of accessible children in the
JList.- Overrides:
getAccessibleChildrenCountin classJComponent.AccessibleJComponent
getAccessibleChild
public javax.accessibility.Accessible getAccessibleChild(int n)
- Returns the n-th accessible child of this
JList. This will be an instance of JList.AccessibleJList.AccessibleJListChild. If there is no child at that index,nullis returned.- Overrides:
getAccessibleChildin classJComponent.AccessibleJComponent
|
|||||||||
| Home >> All >> javax >> [ swing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC