javax.swing
Class JComponent.AccessibleJComponent.AccessibleFocusHandler

java.lang.Object
  extended by javax.swing.JComponent.AccessibleJComponent.AccessibleFocusHandler
All Implemented Interfaces:
FocusListener, EventListener
Enclosing class:
JComponent.AccessibleJComponent

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 JComponent.AccessibleJComponent.AccessibleFocusHandler()
          Creates a new AccessibleFocusHandler.
 
Method Summary
 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 AccessibleContext.ACCESSIBLE_STATE_PROPERTY and a new value of AccessibleState.FOCUSED.
 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 AccessibleContext.ACCESSIBLE_STATE_PROPERTY and an old value of AccessibleState.FOCUSED.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JComponent.AccessibleJComponent.AccessibleFocusHandler

protected JComponent.AccessibleJComponent.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 AccessibleContext.ACCESSIBLE_STATE_PROPERTY and a new value of AccessibleState.FOCUSED.

Specified by:
focusGained in interface FocusListener
Parameters:
event - the FocusEvent indicating that focus was gained

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 AccessibleContext.ACCESSIBLE_STATE_PROPERTY and an old value of AccessibleState.FOCUSED.

Specified by:
focusLost in interface FocusListener
Parameters:
valevent - the FocusEvent indicating that focus was lost