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
-
eventDispatch
- Event dispatcher.
-
TextField()
- Default Constructor.
-
TextField(int)
- Constructor, creates a textfield with numColumns.
-
TextField(String)
- Constructor, creates a textfield initialized to aValue string.
-
TextField(String, int)
- Constructor, creates a textfield initialized to aValue string
with numColumns columns..
-
handleEvent(Event)
- Event handler.
eventDispatch
public EventDispatch eventDispatch
- Event dispatcher. Dispatches the event to the appropriate
user defined event handling method.
- See Also:
- Event, EventDispatch, Callback
TextField
public TextField()
- Default Constructor.
TextField
public TextField(int numColumns)
- Constructor, creates a textfield with numColumns.
- Parameters:
- numColumns - Number of columns for this textfield
TextField
public TextField(String aValue)
- Constructor, creates a textfield initialized to aValue string.
- Parameters:
- aValue - String to initialize field with.
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
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