protected class

Container.AccessibleAWTContainer

extends Component.AccessibleAWTComponent
java.lang.Object
   ↳ javax.accessibility.AccessibleContext
     ↳ java.awt.Component.AccessibleAWTComponent
       ↳ java.awt.Container.AccessibleAWTContainer
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Inner class of Container used to provide default support for accessibility. This class is not meant to be used directly by application developers, but is instead meant only to be subclassed by container developers.

The class used to obtain the accessible role for this object, as well as implementing many of the methods in the AccessibleContainer interface.

Summary

Nested Classes
class Container.AccessibleAWTContainer.AccessibleContainerHandler Fire PropertyChange listener, if one is registered, when children are added or removed. 
[Expand]
Inherited Constants
From class javax.accessibility.AccessibleContext
Fields
protected ContainerListener accessibleContainerHandler
[Expand]
Inherited Fields
From class java.awt.Component.AccessibleAWTComponent
From class javax.accessibility.AccessibleContext
Protected Constructors
Container.AccessibleAWTContainer()
Public Methods
void addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list.
Accessible getAccessibleAt(Point p)
Returns the Accessible child, if one exists, contained at the local coordinate Point.
Accessible getAccessibleChild(int i)
Returns the nth Accessible child of the object.
int getAccessibleChildrenCount()
Returns the number of accessible children in the object.
[Expand]
Inherited Methods
From class java.awt.Component.AccessibleAWTComponent
From class javax.accessibility.AccessibleContext
From class java.lang.Object
From interface javax.accessibility.AccessibleComponent

Fields

protected ContainerListener accessibleContainerHandler

Protected Constructors

protected Container.AccessibleAWTContainer ()

Public Methods

public void addPropertyChangeListener (PropertyChangeListener listener)

Adds a PropertyChangeListener to the listener list.

Parameters
listener the PropertyChangeListener to be added

public Accessible getAccessibleAt (Point p)

Returns the Accessible child, if one exists, contained at the local coordinate Point.

Parameters
p the point defining the top-left corner of the Accessible, given in the coordinate space of the object's parent
Returns
  • the Accessible, if it exists, at the specified location; else null

public Accessible getAccessibleChild (int i)

Returns the nth Accessible child of the object.

Parameters
i zero-based index of child
Returns
  • the nth Accessible child of the object

public int getAccessibleChildrenCount ()

Returns the number of accessible children in the object. If all of the children of this object implement Accessible, then this method should return the number of children of this object.

Returns
  • the number of accessible children in the object