javax.swing.plaf.basic
Class BasicListUI.FocusHandler

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

public class BasicListUI.FocusHandler
extends Object
implements FocusListener

A helper class which listens for FocusEvents from the JList.


Constructor Summary
BasicListUI.FocusHandler()
           
 
Method Summary
 void focusGained(FocusEvent e)
          Called when the JList acquires focus.
 void focusLost(FocusEvent e)
          Called when the JList loses focus.
protected  void repaintCellFocus()
          Helper method to repaint the focused cell's lost or acquired focus state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicListUI.FocusHandler

public BasicListUI.FocusHandler()
Method Detail

focusGained

public void focusGained(FocusEvent e)
Called when the JList acquires focus.

Specified by:
focusGained in interface FocusListener
Parameters:
e - The FocusEvent representing focus acquisition

focusLost

public void focusLost(FocusEvent e)
Called when the JList loses focus.

Specified by:
focusLost in interface FocusListener
Parameters:
e - The FocusEvent representing focus loss

repaintCellFocus

protected void repaintCellFocus()
Helper method to repaint the focused cell's lost or acquired focus state.