java.awt

Class Container.AccessibleAWTContainer

protected class Container.AccessibleAWTContainer extends AccessibleAWTComponent

This class provides accessibility support for subclasses of container.

Since: 1.3

Nested Class Summary
protected classContainer.AccessibleAWTContainer.AccessibleContainerHandler
This class fires a PropertyChange listener, if registered, when children are added or removed from the enclosing accessible object.
Field Summary
protected ContainerListeneraccessibleContainerHandler
The handler to fire PropertyChange when children are added or removed.
Constructor Summary
protected AccessibleAWTContainer()
The default constructor.
Method Summary
AccessiblegetAccessibleAt(Point p)
Return the accessible child located at point (in the parent's coordinates), if one exists.
AccessiblegetAccessibleChild(int i)
Return the nth accessible child of the containing accessible object.
intgetAccessibleChildrenCount()
Return the number of accessible children of the containing accessible object (at most the total number of its children).

Field Detail

accessibleContainerHandler

protected ContainerListener accessibleContainerHandler
The handler to fire PropertyChange when children are added or removed.

Serial: the handler for property changes

Constructor Detail

AccessibleAWTContainer

protected AccessibleAWTContainer()
The default constructor.

Method Detail

getAccessibleAt

public Accessible getAccessibleAt(Point p)
Return the accessible child located at point (in the parent's coordinates), if one exists.

Parameters: p the point to look at

Returns: an accessible object at that point, or null

Throws: NullPointerException if p is null

getAccessibleChild

public Accessible getAccessibleChild(int i)
Return the nth accessible child of the containing accessible object.

Parameters: i the child to grab, zero-based

Returns: the accessible child, or null

getAccessibleChildrenCount

public int getAccessibleChildrenCount()
Return the number of accessible children of the containing accessible object (at most the total number of its children).

Returns: the number of accessible children