Quaqua 8.0 2011-10-02

ch.randelshofer.quaqua
Class QuaquaTextFieldFocusHandler

java.lang.Object
  extended by ch.randelshofer.quaqua.QuaquaTextFieldFocusHandler
All Implemented Interfaces:
java.awt.event.FocusListener, java.util.EventListener

public class QuaquaTextFieldFocusHandler
extends java.lang.Object
implements java.awt.event.FocusListener

QuaquaTextFieldFocusHandler. Selects all text of a JTextComponent, if the user used a keyboard focus traversal key to transfer the focus on the JTextComponent.

Version:
$Id: QuaquaTextFieldFocusHandler.java 361 2010-11-21 11:19:20Z wrandelshofer $
Author:
Werner Randelshofer

Constructor Summary
QuaquaTextFieldFocusHandler()
          Allow instance creation by UIManager.
 
Method Summary
 void focusGained(java.awt.event.FocusEvent event)
           
 void focusLost(java.awt.event.FocusEvent event)
           
static QuaquaTextFieldFocusHandler getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuaquaTextFieldFocusHandler

public QuaquaTextFieldFocusHandler()
Allow instance creation by UIManager.

Method Detail

getInstance

public static QuaquaTextFieldFocusHandler getInstance()

focusGained

public void focusGained(java.awt.event.FocusEvent event)
Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent event)
Specified by:
focusLost in interface java.awt.event.FocusListener

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.