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
-
ReturnTextField()
- Constructor: ReturnTextField
This creates a ReturnTextField with the default number of columns and
no text.
-
ReturnTextField(int)
- Constructor: ReturnTextField
This creates a ReturnTextField with the specified number of columns and
no text.
-
ReturnTextField(String)
-
Constructor: ReturnTextField
This creates a ReturnTextField with the default number of columns that
displays the text supplied.
-
ReturnTextField(String, int)
- Constructor: ReturnTextField
This creates a ReturnTextField with the specified number of columns that
also displays the text supplied.
-
returnPressed(String)
-
Method: returnPressed
This method gets called every time return is pressed.
ReturnTextField
public ReturnTextField()
- Constructor: ReturnTextField
This creates a ReturnTextField with the default number of columns and
no text.
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
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
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
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