javax.swing

Class JComponent.AccessibleJComponent.AccessibleFocusHandler

protected class JComponent.AccessibleJComponent.AccessibleFocusHandler extends Object implements FocusListener

Receives notification if the focus on the JComponent changes and fires appropriate PropertyChangeEvents to listeners registered with the AccessibleJComponent.
Constructor Summary
protected AccessibleFocusHandler()
Creates a new AccessibleFocusHandler.
Method Summary
voidfocusGained(FocusEvent event)
Receives notification when the JComponent gained focus and fires a PropertyChangeEvent to listeners registered on the AccessibleJComponent with a property name of {@link AccessibleContext#ACCESSIBLE_STATE_PROPERTY} and a new value of {@link AccessibleState#FOCUSED}.
voidfocusLost(FocusEvent valevent)
Receives notification when the JComponent lost focus and fires a PropertyChangeEvent to listeners registered on the AccessibleJComponent with a property name of {@link AccessibleContext#ACCESSIBLE_STATE_PROPERTY} and an old value of {@link AccessibleState#FOCUSED}.

Constructor Detail

AccessibleFocusHandler

protected AccessibleFocusHandler()
Creates a new AccessibleFocusHandler.

Method Detail

focusGained

public void focusGained(FocusEvent event)
Receives notification when the JComponent gained focus and fires a PropertyChangeEvent to listeners registered on the AccessibleJComponent with a property name of {@link AccessibleContext#ACCESSIBLE_STATE_PROPERTY} and a new value of {@link AccessibleState#FOCUSED}.

focusLost

public void focusLost(FocusEvent valevent)
Receives notification when the JComponent lost focus and fires a PropertyChangeEvent to listeners registered on the AccessibleJComponent with a property name of {@link AccessibleContext#ACCESSIBLE_STATE_PROPERTY} and an old value of {@link AccessibleState#FOCUSED}.