javax.swing.plaf.basic
Class BasicComboBoxUI.FocusHandler

java.lang.Object
  extended by javax.swing.plaf.basic.BasicComboBoxUI.FocusHandler
All Implemented Interfaces:
FocusListener, EventListener
Enclosing class:
BasicComboBoxUI

public class BasicComboBoxUI.FocusHandler
extends Object
implements FocusListener

Handles focus changes occuring in the combo box. This class is responsible for repainting combo box whenever focus is gained or lost and also for hiding popup list of items whenever combo box loses its focus.


Constructor Summary
BasicComboBoxUI.FocusHandler()
          Creates a new FocusHandler object.
 
Method Summary
 void focusGained(FocusEvent e)
          Invoked when combo box gains focus.
 void focusLost(FocusEvent e)
          Invoked when the combo box loses focus.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicComboBoxUI.FocusHandler

public BasicComboBoxUI.FocusHandler()
Creates a new FocusHandler object.

Method Detail

focusGained

public void focusGained(FocusEvent e)
Invoked when combo box gains focus. It repaints main part of combo box accordingly.

Specified by:
focusGained in interface FocusListener
Parameters:
e - the FocusEvent

focusLost

public void focusLost(FocusEvent e)
Invoked when the combo box loses focus. It repaints the main part of the combo box accordingly and hides the popup list of items.

Specified by:
focusLost in interface FocusListener
Parameters:
e - the FocusEvent