javax.swing

Class JComponent.AccessibleJComponent.AccessibleContainerHandler

protected class JComponent.AccessibleJComponent.AccessibleContainerHandler extends Object implements ContainerListener

Receives notification if there are child components are added or removed from the JComponent and fires appropriate PropertyChangeEvents to interested listeners on the AccessibleJComponent.
Constructor Summary
protected AccessibleContainerHandler()
Creates a new AccessibleContainerHandler.
Method Summary
voidcomponentAdded(ContainerEvent event)
Receives notification when a child component is added to the JComponent and fires a PropertyChangeEvent on listeners registered with the AccessibleJComponent with a property name of {@link AccessibleContext#ACCESSIBLE_CHILD_PROPERTY}.
voidcomponentRemoved(ContainerEvent event)
Receives notification when a child component is removed from the JComponent and fires a PropertyChangeEvent on listeners registered with the AccessibleJComponent with a property name of {@link AccessibleContext#ACCESSIBLE_CHILD_PROPERTY}.

Constructor Detail

AccessibleContainerHandler

protected AccessibleContainerHandler()
Creates a new AccessibleContainerHandler.

Method Detail

componentAdded

public void componentAdded(ContainerEvent event)
Receives notification when a child component is added to the JComponent and fires a PropertyChangeEvent on listeners registered with the AccessibleJComponent with a property name of {@link AccessibleContext#ACCESSIBLE_CHILD_PROPERTY}.

Parameters: event the container event

componentRemoved

public void componentRemoved(ContainerEvent event)
Receives notification when a child component is removed from the JComponent and fires a PropertyChangeEvent on listeners registered with the AccessibleJComponent with a property name of {@link AccessibleContext#ACCESSIBLE_CHILD_PROPERTY}.

Parameters: event the container event