All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cs005.gui.ReturnTextField

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.TextComponent
                   |
                   +----java.awt.TextField
                           |
                           +----cs005.gui.ReturnTextField

public class ReturnTextField
extends TextField

Constructor Index

 o ReturnTextField()
Constructor: ReturnTextField
This creates a ReturnTextField with the default number of columns and no text.
 o ReturnTextField(int)
Constructor: ReturnTextField
This creates a ReturnTextField with the specified number of columns and no text.
 o ReturnTextField(String)
Constructor: ReturnTextField
This creates a ReturnTextField with the default number of columns that displays the text supplied.
 o ReturnTextField(String, int)
Constructor: ReturnTextField
This creates a ReturnTextField with the specified number of columns that also displays the text supplied.

Method Index

 o returnPressed(String)
Method: returnPressed
This method gets called every time return is pressed.

Constructors

 o ReturnTextField
 public ReturnTextField()
Constructor: ReturnTextField
This creates a ReturnTextField with the default number of columns and no text.

 o ReturnTextField
 public ReturnTextField(String text)
Constructor: ReturnTextField
This creates a ReturnTextField with the default number of columns that displays the text supplied.

Parameters:
text - the text to display
 o ReturnTextField
 public ReturnTextField(int columns)
Constructor: ReturnTextField
This creates a ReturnTextField with the specified number of columns and no text.

Parameters:
columns - the number of columns
 o ReturnTextField
 public ReturnTextField(String text,
                        int columns)
Constructor: ReturnTextField
This creates a ReturnTextField with the specified number of columns that also displays the text supplied.

Parameters:
text - the text to display
columns - the number of columns

Methods

 o returnPressed
 public void returnPressed(String text)
Method: returnPressed
This method gets called every time return is pressed. It is empty and should be filled in in the subclasses. The TextField will be cleared before this method is called. You should never have to call this method yourself!

Parameters:
text - the text that was in the TextField before return was pressed

All Packages  Class Hierarchy  This Package  Previous  Next  Index