Home » openjdk-7 » java » awt » event » [javadoc | source]
public class: TextEvent [javadoc | source]

All Implemented Interfaces:

A semantic event which indicates that an object's text changed. This high-level event is generated by an object (such as a TextComponent) when its text changes. The event is passed to every TextListener object which registered to receive such events using the component's addTextListener method.

The object that implements the TextListener interface gets this TextEvent when the event occurs. The listener is spared the details of processing individual mouse movements and key strokes Instead, it can process a "meaningful" (semantic) event like "text changed".

An unspecified behavior will be caused if the {@code id} parameter of any particular {@code TextEvent} instance is not in the range from {@code TEXT_FIRST} to {@code TEXT_LAST}.

Field Summary
public static final  int TEXT_FIRST    The first number in the range of ids used for text events. 
public static final  int TEXT_LAST    The last number in the range of ids used for text events. 
public static final  int TEXT_VALUE_CHANGED    This event id indicates that object's text changed. 
Fields inherited from java.awt.AWTEvent:
Fields inherited from java.util.EventObject:
 public TextEvent(Object source,
    int id) 
    Constructs a TextEvent object.

    This method throws an IllegalArgumentException if source is null.

    source - The (TextComponent) object that originated the event
    id - An integer that identifies the event type. For information on allowable values, see the class description for TextEvent
    IllegalArgumentException - if source is null
    Also see:
Method from java.awt.event.TextEvent Summary:
Methods from java.awt.AWTEvent:
consume,   convertToOld,   copyPrivateDataInto,   dispatched,   getAccessControlContext,   getID,   isConsumed,   paramString,   setSource,   toString
Methods from java.util.EventObject:
getSource,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.awt.event.TextEvent Detail:
 public String paramString() 
    Returns a parameter string identifying this text event. This method is useful for event-logging and for debugging.