edu.isi.powerloom.gui.components
Class TextComponentValueTracker

java.lang.Object
  |
  +--edu.isi.powerloom.gui.components.TextComponentValueTracker
All Implemented Interfaces:
java.util.EventListener, java.awt.event.FocusListener

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

Class to help detect whether the user has changed a value in a text component, and do an action if it has changed.

Since:
Fri Oct 25 11:33:07 2002
Author:
Eric Melz

Constructor Summary
TextComponentValueTracker(javax.swing.text.JTextComponent textComponent, javax.swing.Action action)
           
 
Method Summary
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextComponentValueTracker

public TextComponentValueTracker(javax.swing.text.JTextComponent textComponent,
                                 javax.swing.Action action)
Method Detail

focusGained

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

focusLost

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


Copyright © 2002 University of Southern California Information Sciences Institute. All Rights Reserved.