java.awt.event
Interface TextListener

All Superinterfaces:
EventListener sample code for java.util.EventListener definition code for java.util.EventListener
All Known Implementing Classes:
AWTEventMulticaster sample code for java.awt.AWTEventMulticaster definition code for java.awt.AWTEventMulticaster , TextArea.AccessibleAWTTextArea sample code for java.awt.TextArea.AccessibleAWTTextArea definition code for java.awt.TextArea.AccessibleAWTTextArea , TextComponent.AccessibleAWTTextComponent sample code for java.awt.TextComponent.AccessibleAWTTextComponent definition code for java.awt.TextComponent.AccessibleAWTTextComponent , TextField.AccessibleAWTTextField sample code for java.awt.TextField.AccessibleAWTTextField definition code for java.awt.TextField.AccessibleAWTTextField

public interface TextListener
extends EventListener sample code for java.util.EventListener definition code for java.util.EventListener

The listener interface for receiving text events. The class that is interested in processing a text event implements this interface. The object created with that class is then registered with a component using the component's addTextListener method. When the component's text changes, the listener object's textValueChanged method is invoked.

Since:
1.1
See Also:
TextEvent sample code for java.awt.event.TextEvent definition code for java.awt.event.TextEvent , Tutorial: Writing a Text Listener, Reference: The Java Class Libraries (update file)

Method Summary
 void textValueChanged sample code for java.awt.event.TextListener.textValueChanged(java.awt.event.TextEvent) definition code for java.awt.event.TextListener.textValueChanged(java.awt.event.TextEvent) (TextEvent sample code for java.awt.event.TextEvent definition code for java.awt.event.TextEvent  e)
          Invoked when the value of the text has changed.
 

Method Detail

textValueChanged sample code for java.awt.event.TextListener.textValueChanged(java.awt.event.TextEvent) definition code for java.awt.event.TextListener.textValueChanged(java.awt.event.TextEvent)

void textValueChanged(TextEvent sample code for java.awt.event.TextEvent definition code for java.awt.event.TextEvent  e)
Invoked when the value of the text has changed. The code written for this method performs the operations that need to occur when text changes.