java.awt
Class List.AccessibleAWTList

java.lang.Object
  extended by javax.accessibility.AccessibleContext
      extended by java.awt.Component.AccessibleAWTComponent
          extended by java.awt.List.AccessibleAWTList
All Implemented Interfaces:
ActionListener, ItemListener, Serializable, EventListener, AccessibleComponent, AccessibleSelection
Enclosing class:
List

protected class List.AccessibleAWTList
extends Component.AccessibleAWTComponent
implements AccessibleSelection, ItemListener, ActionListener

See Also:
Serialized Form

Nested Class Summary
protected  class List.AccessibleAWTList.AccessibleAWTListChild
           
 
Nested classes/interfaces inherited from class java.awt.Component.AccessibleAWTComponent
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler
 
Field Summary
 
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
List.AccessibleAWTList()
           
 
Method Summary
 void actionPerformed(ActionEvent event)
          This method is invoked when an action occurs.
 void addAccessibleSelection(int i)
          Select the specified child if it is not already selected, placing it in the object's current selection.
 void clearAccessibleSelection()
          Unselect all children of this Accessible object.
 Accessible getAccessibleChild(int i)
          Returns the ith accessible child.
 int getAccessibleChildrenCount()
          Returns the number of children of this component which implement Accessible.
 AccessibleRole getAccessibleRole()
          Returns the role of this component.
 AccessibleSelection getAccessibleSelection()
          Get any supported accessible selection.
 Accessible getAccessibleSelection(int i)
          Returns the i-th selected child (not necessarily the overall i-th child) of this Accessible object.
 int getAccessibleSelectionCount()
          Returns the number of currently selected Accessible children, which may be 0 if nothing is selected.
 AccessibleStateSet getAccessibleStateSet()
          Returns a state set describing this component's state.
 boolean isAccessibleChildSelected(int i)
          Determine if i-th overall child of this accessible object is selected.
 void itemStateChanged(ItemEvent event)
          This method is called when an item's state is changed.
 void removeAccessibleSelection(int i)
          Unselect the specified child of this Accessible object.
 void selectAllAccessibleSelection()
          Select all children of this Accessible object if the object supports multiple selections or has a single child.
 
Methods inherited from class java.awt.Component.AccessibleAWTComponent
addFocusListener, addPropertyChangeListener, contains, getAccessibleAt, getAccessibleComponent, getAccessibleDescription, getAccessibleIndexInParent, getAccessibleName, getAccessibleParent, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocale, getLocation, getLocationOnScreen, getSize, isEnabled, isFocusTraversable, isShowing, isVisible, removeFocusListener, removePropertyChangeListener, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisible
 
Methods inherited from class javax.accessibility.AccessibleContext
firePropertyChange, getAccessibleAction, getAccessibleEditableText, getAccessibleIcon, getAccessibleRelationSet, getAccessibleTable, getAccessibleText, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

List.AccessibleAWTList

public List.AccessibleAWTList()
Method Detail

getAccessibleRole

public AccessibleRole getAccessibleRole()
Description copied from class: Component.AccessibleAWTComponent
Returns the role of this component.

Overrides:
getAccessibleRole in class Component.AccessibleAWTComponent
Returns:
the accessible role
See Also:
AccessibleRole

getAccessibleStateSet

public AccessibleStateSet getAccessibleStateSet()
Description copied from class: Component.AccessibleAWTComponent
Returns a state set describing this component's state.

Overrides:
getAccessibleStateSet in class Component.AccessibleAWTComponent
Returns:
a new state set
See Also:
AccessibleState

getAccessibleChildrenCount

public int getAccessibleChildrenCount()
Description copied from class: Component.AccessibleAWTComponent
Returns the number of children of this component which implement Accessible. Subclasses must override this if they can have children.

Overrides:
getAccessibleChildrenCount in class Component.AccessibleAWTComponent
Returns:
the number of accessible children, default 0
See Also:
AccessibleContext.getAccessibleChild(int)

getAccessibleChild

public Accessible getAccessibleChild(int i)
Description copied from class: Component.AccessibleAWTComponent
Returns the ith accessible child. Subclasses must override this if they can have children.

Overrides:
getAccessibleChild in class Component.AccessibleAWTComponent
Parameters:
i - the 0-based index to get
Returns:
the ith accessible child, or null
See Also:
Component.AccessibleAWTComponent.getAccessibleChildrenCount()

getAccessibleSelectionCount

public int getAccessibleSelectionCount()
Description copied from interface: AccessibleSelection
Returns the number of currently selected Accessible children, which may be 0 if nothing is selected.

Specified by:
getAccessibleSelectionCount in interface AccessibleSelection
Returns:
the number of selected children

getAccessibleSelection

public AccessibleSelection getAccessibleSelection()
Description copied from class: AccessibleContext
Get any supported accessible selection. The default implementation returns null.

Overrides:
getAccessibleSelection in class AccessibleContext
Returns:
the supported selection, or null
See Also:
AccessibleSelection

getAccessibleSelection

public Accessible getAccessibleSelection(int i)
Description copied from interface: AccessibleSelection
Returns the i-th selected child (not necessarily the overall i-th child) of this Accessible object. If i is out of bounds, null is returned.

Specified by:
getAccessibleSelection in interface AccessibleSelection
Parameters:
i - zero-based index of selected child objects
Returns:
the Accessible child, or null
See Also:
AccessibleSelection.getAccessibleSelectionCount()

isAccessibleChildSelected

public boolean isAccessibleChildSelected(int i)
Description copied from interface: AccessibleSelection
Determine if i-th overall child of this accessible object is selected. If i is out of bounds, false is returned.

Specified by:
isAccessibleChildSelected in interface AccessibleSelection
Parameters:
i - zero-based index of child objects
Returns:
true if specified child exists and is selected

addAccessibleSelection

public void addAccessibleSelection(int i)
Description copied from interface: AccessibleSelection
Select the specified child if it is not already selected, placing it in the object's current selection. If the object does not support multiple selections then the new selection replaces the old. If the specified child is already selected, or is out of bounds, this method does nothing.

Specified by:
addAccessibleSelection in interface AccessibleSelection
Parameters:
i - zero-based index of child objects

removeAccessibleSelection

public void removeAccessibleSelection(int i)
Description copied from interface: AccessibleSelection
Unselect the specified child of this Accessible object. If the specified child is not selected, or is out of bounds, this method does nothing.

Specified by:
removeAccessibleSelection in interface AccessibleSelection
Parameters:
i - the zero-based index of the child objects

clearAccessibleSelection

public void clearAccessibleSelection()
Description copied from interface: AccessibleSelection
Unselect all children of this Accessible object.

Specified by:
clearAccessibleSelection in interface AccessibleSelection

selectAllAccessibleSelection

public void selectAllAccessibleSelection()
Description copied from interface: AccessibleSelection
Select all children of this Accessible object if the object supports multiple selections or has a single child. Otherwise this does nothing.

Specified by:
selectAllAccessibleSelection in interface AccessibleSelection

itemStateChanged

public void itemStateChanged(ItemEvent event)
Description copied from interface: ItemListener
This method is called when an item's state is changed.

Specified by:
itemStateChanged in interface ItemListener
Parameters:
event - the ItemEvent indicating the change

actionPerformed

public void actionPerformed(ActionEvent event)
Description copied from interface: ActionListener
This method is invoked when an action occurs.

Specified by:
actionPerformed in interface ActionListener
Parameters:
event - the ActionEvent that occurred