javax.swing.text
Class DefaultCaret.FocusHandler

java.lang.Object
  extended byjavax.swing.text.DefaultCaret.FocusHandler
All Implemented Interfaces:
EventListener, FocusListener
Enclosing class:
DefaultCaret

private static class DefaultCaret.FocusHandler
extends Object
implements FocusListener


Field Summary
private  FocusListener fl
           
 
Constructor Summary
(package private) DefaultCaret.FocusHandler(FocusListener fl)
           
 
Method Summary
 void focusGained(FocusEvent e)
          Called when the component containing the caret gains focus.
 void focusLost(FocusEvent e)
          Called when the component containing the caret loses focus.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fl

private transient FocusListener fl
Constructor Detail

DefaultCaret.FocusHandler

DefaultCaret.FocusHandler(FocusListener fl)
Method Detail

focusGained

public void focusGained(FocusEvent e)
Called when the component containing the caret gains focus. This is implemented to set the caret to visible if the component is editable.

Specified by:
focusGained in interface FocusListener
Parameters:
e - the focus event
See Also:
FocusListener.focusGained(java.awt.event.FocusEvent)

focusLost

public void focusLost(FocusEvent e)
Called when the component containing the caret loses focus. This is implemented to set the caret to visibility to false.

Specified by:
focusLost in interface FocusListener
Parameters:
e - the focus event
See Also:
FocusListener.focusLost(java.awt.event.FocusEvent)