MDACC
Biostatistics

org.mdanderson.biostat.util
Class AutoSelectEventHandler

java.lang.Object
  extended byorg.mdanderson.biostat.util.AutoSelectEventHandler
All Implemented Interfaces:
EventListener, FocusListener

public class AutoSelectEventHandler
extends Object
implements FocusListener

AutoSelectEventHandler - Responds to focus events. The intent is to autoselect the text in data entry fields so typing overwrites previous text by default, making it easier on the user.


Constructor Summary
AutoSelectEventHandler()
           
 
Method Summary
 void focusGained(FocusEvent event)
          Invoked when component gains the keyboard focus.
 void focusLost(FocusEvent event)
          Invoked when component loses the keyboard focus.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoSelectEventHandler

public AutoSelectEventHandler()
Method Detail

focusGained

public void focusGained(FocusEvent event)
Invoked when component gains the keyboard focus. Selects all the text in this text component.

Specified by:
focusGained in interface FocusListener
Parameters:
event - low-level input focus event

focusLost

public void focusLost(FocusEvent event)
Invoked when component loses the keyboard focus. Deselects the text in this text component.

Specified by:
focusLost in interface FocusListener
Parameters:
event - low-level input focus event

MDACC
Biostatistics

Copyright © 2002 M.D. Anderson Cancer Center. All Rights Reserved.