Class awtExt.TextField
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class awtExt.TextField

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.TextComponent
                   |
                   +----java.awt.TextField
                           |
                           +----awtExt.TextField

public class TextField
extends TextField
Extension of standard awt TextField. Provides a callback mechanism for invoking user defined event handling methods. A callback method can be attached on each and every event 'hook' in the TextField's eventDispatch object.
See Also:
EventDispatch, Callback, Event, TextField

Variable Index

 o eventDispatch
Event dispatcher.

Constructor Index

 o TextField()
Default Constructor.
 o TextField(int)
Constructor, creates a textfield with numColumns.
 o TextField(String)
Constructor, creates a textfield initialized to aValue string.
 o TextField(String, int)
Constructor, creates a textfield initialized to aValue string with numColumns columns..

Method Index

 o handleEvent(Event)
Event handler.

Variables

 o eventDispatch
  public EventDispatch eventDispatch
Event dispatcher. Dispatches the event to the appropriate user defined event handling method.
See Also:
Event, EventDispatch, Callback

Constructors

 o TextField
  public TextField()
Default Constructor.
 o TextField
  public TextField(int numColumns)
Constructor, creates a textfield with numColumns.
Parameters:
numColumns - Number of columns for this textfield
 o TextField
  public TextField(String aValue)
Constructor, creates a textfield initialized to aValue string.
Parameters:
aValue - String to initialize field with.
 o TextField
  public TextField(String aValue,
                   int nColumns)
Constructor, creates a textfield initialized to aValue string with numColumns columns..
Parameters:
aValue - String to initialize field with.
nColumns - Number of columns for this textfield

Methods

 o handleEvent
  public final boolean handleEvent(Event evt)
Event handler. Dispatches the event to the appropriate attached methodRef. User defined method(s) can control the event propagation by setting the processed instance variable in the CallbackInfo object.
Parameters:
evt - The event.
Overrides:
handleEvent in class Component
See Also:
Event, handle, processed

All Packages  Class Hierarchy  This Package  Previous  Next  Index