Tuesday, 25 February 2014

EVENT CLASS:TextEvent class

Instances of this class describe text events.........

The TextEvent Class


           Instances of this class describe text events. These are generated by text fields and text areas when characters are entered by a user or program.TextEvent defines the integer constant TEXT_VALUE_CHANGED.

TextEvent Class: constructor

         
       TextEvent(Objectsrc, int type)

            Here,src is a reference to the object that generated this event. The type of the event is specified by type.


                  TheTextEvent object does not include the characters currently in the text component that generated the event. Instead, your program must use other methods associated with the text component to retrieve that information. This operation differs from other event objects discussed in this section. For this reason, no methods are discussed here for theTextEvent class. Think of a text event notification as a signal to a listener that it should retrieve information from a specific text component.

No comments :

Post a Comment