javax.swing.text
Class DefaultCaret.FocusHandler
java.lang.Object
javax.swing.text.DefaultCaret.FocusHandler
- All Implemented Interfaces:
- EventListener, FocusListener
- Enclosing class:
- DefaultCaret
- private static class DefaultCaret.FocusHandler
- extends Object
- implements FocusListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fl
private transient FocusListener fl
DefaultCaret.FocusHandler
DefaultCaret.FocusHandler(FocusListener fl)
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)