|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sdsu.html.TextInput
There are three types of Text inputs: scrolling (TEXTAREA tag),
single-line (INPUT tag) and password (INPUT tag).
Examples of each:
Use static methods TextInput.scrolling( ), TextInput.singleLine(...), TextInput.password(...) to create instance of this class.
Method Summary | |
static TextInput |
password(java.lang.String name,
int numberOfColumns)
Create a text input area for entering passwords. |
static TextInput |
scrolling(java.lang.String name,
int numberOfRows,
int numberOfColumns)
Create a scrolling text input area. |
void |
setInitalText(java.lang.String text)
Sets the inital text seen in the text input. |
static TextInput |
singleLine(java.lang.String name,
int numberOfColumns)
Create a single-line text input area. |
static TextInput |
singleLine(java.lang.String name,
int numberOfColumns,
int maxTextLength)
Create a single-line text input area. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
public static TextInput scrolling(java.lang.String name, int numberOfRows, int numberOfColumns)
name
- name used to report the contents of text area to a cgi program.
The value reported will be the text in the text input.numberOfRows
- number of rows of text displayable in the text area,
should be at least three, so the scrollbars look reasonable.numberOfColumns
- the width of the text input in number of characters.public static TextInput singleLine(java.lang.String name, int numberOfColumns)
name
- name used to report the contents of text area to a cgi program.
The value reported will be the text in the text input.numberOfColumns
- the width of the text input in number of characters.public static TextInput singleLine(java.lang.String name, int numberOfColumns, int maxTextLength)
name
- name used to report the contents of text area to a cgi program.
The value reported will be the text in the text input.numberOfColumns
- the width of the text input in number of characters.maxTextLength
- maximum number of characters a user is allowed to enter.public static TextInput password(java.lang.String name, int numberOfColumns)
name
- name used to report the contents of text area to a cgi program.
The value reported will be the text in the text input.numberOfColumns
- the width of the text input in number of characters.public void setInitalText(java.lang.String text)
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |