Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.swing
Class JList.AccessibleJList  view JList.AccessibleJList download JList.AccessibleJList.java

java.lang.Object
  extended byjavax.accessibility.AccessibleContext
      extended byjava.awt.Component.AccessibleAWTComponent
          extended byjava.awt.Container.AccessibleAWTContainer
              extended byjavax.swing.JComponent.AccessibleJComponent
                  extended byjavax.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

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
 
Fields inherited from class javax.accessibility.AccessibleContext
ACCESSIBLE_ACTION_PROPERTY, ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY, ACCESSIBLE_CARET_PROPERTY, ACCESSIBLE_CHILD_PROPERTY, ACCESSIBLE_COMPONENT_BOUNDS_CHANGED, ACCESSIBLE_DESCRIPTION_PROPERTY, ACCESSIBLE_HYPERTEXT_OFFSET, ACCESSIBLE_INVALIDATE_CHILDREN, ACCESSIBLE_NAME_PROPERTY, ACCESSIBLE_SELECTION_PROPERTY, ACCESSIBLE_STATE_PROPERTY, ACCESSIBLE_TABLE_CAPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED, ACCESSIBLE_TABLE_MODEL_CHANGED, ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_ROW_HEADER_CHANGED, ACCESSIBLE_TABLE_SUMMARY_CHANGED, ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED, ACCESSIBLE_TEXT_PROPERTY, ACCESSIBLE_VALUE_PROPERTY, ACCESSIBLE_VISIBLE_DATA_PROPERTY, accessibleDescription, accessibleName, accessibleParent
 
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:
getAccessibleSelectionCount in interface javax.accessibility.AccessibleSelection

getAccessibleSelection

public javax.accessibility.Accessible getAccessibleSelection(int n)
Returns the n-th selected accessible child.

Specified by:
getAccessibleSelection in interface javax.accessibility.AccessibleSelection

isAccessibleChildSelected

public boolean isAccessibleChildSelected(int n)
Returns true if the n-th child is selected, false otherwise.

Specified by:
isAccessibleChildSelected in interface javax.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:
addAccessibleSelection in interface javax.accessibility.AccessibleSelection

removeAccessibleSelection

public void removeAccessibleSelection(int i)
Removes the accessible item with the specified index to the selection.

Specified by:
removeAccessibleSelection in interface javax.accessibility.AccessibleSelection

clearAccessibleSelection

public void clearAccessibleSelection()
Remove all selection items from the selection.

Specified by:
clearAccessibleSelection in interface javax.accessibility.AccessibleSelection

selectAllAccessibleSelection

public void selectAllAccessibleSelection()
Selects all items if multiple selections are supported. Otherwise do nothing.

Specified by:
selectAllAccessibleSelection in interface javax.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_PROPERTY 55 and the second with AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY>AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY 55 .

Specified by:
valueChanged in interface javax.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_PROPERTY 55 .

Specified by:
contentsChanged in interface javax.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_PROPERTY 55 .

Specified by:
intervalAdded in interface javax.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_PROPERTY 55 .

Specified by:
intervalRemoved in interface javax.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:
propertyChange in interface java.beans.PropertyChangeListener

getAccessibleStateSet

public javax.accessibility.AccessibleStateSet getAccessibleStateSet()
Return the state set of the JList.

Overrides:
getAccessibleStateSet in class JComponent.AccessibleJComponent

getAccessibleRole

public javax.accessibility.AccessibleRole getAccessibleRole()
Returns the accessible role for JList, AccessibleRole.LIST>AccessibleRole.LIST 55 .

Overrides:
getAccessibleRole in class JComponent.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 the JList). If there is no child at that location, this returns null.

Specified by:
getAccessibleAt in interface javax.accessibility.AccessibleComponent

getAccessibleChildrenCount

public int getAccessibleChildrenCount()
Returns the number of accessible children in the JList.

Overrides:
getAccessibleChildrenCount in class JComponent.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, null is returned.

Overrides:
getAccessibleChild in class JComponent.AccessibleJComponent