All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class guinea.awt.GPTextField

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.TextComponent
                   |
                   +----java.awt.TextField
                           |
                           +----guinea.awt.GPTextField

public class GPTextField
extends TextField

Constructor Index

· GPTextField()
Constructs a new text field.
· GPTextField(int)
Constructs a new empty TextField with the specified number of columns.
· GPTextField(String)
Constructs a new text field initialized with the specified text.
· GPTextField(String, int)
Constructs a new text field initialized with the specified text to be displayed, and wide enough to hold the specified number of characters.

Method Index

· setText(String, boolean)
Set text of the text field.

Constructors

· GPTextField
 public GPTextField()
Constructs a new text field.

· GPTextField
 public GPTextField(int columns)
Constructs a new empty TextField with the specified number of columns.

Parameters:
columns - the number of columns
· GPTextField
 public GPTextField(String text)
Constructs a new text field initialized with the specified text.

Parameters:
text - the text to be displayed.
· GPTextField
 public GPTextField(String text,
                    int columns)
Constructs a new text field initialized with the specified text to be displayed, and wide enough to hold the specified number of characters.

Parameters:
text - the text to be displayed.
columns - the number of characters.

Methods

· setText
 public void setText(String text,
                     boolean sendEvent)
Set text of the text field. First sets the text the same as setText(String) but then sends a action event as if the used had pressed return on the text field.

Parameters:
text - text for the textfield.
sendEvent - if true, an event will be sent when text is set.
See Also:
setText

All Packages  Class Hierarchy  This Package  Previous  Next  Index