Inheritance diagram for TextBox:
Public Member Functions | |
TextBox (int rows, int cols, String prefix, Form form) | |
void | loadValues () |
void | display (boolean hidden) |
void | display (boolean hidden, String params) |
Public Attributes | |
int | rows |
int | cols |
String | text |
Definition at line 1 of file TextBox.java.
|
Definition at line 6 of file TextBox.java.
|
|
Definition at line 23 of file TextBox.java. References cols, Widget::htmlencode(), Widget::p(), Widget::prefix, rows, and text. 00024 { 00025 String t = text == null ? "" : text; 00026 if (hidden) 00027 p("<input type=hidden name=" + prefix + " value=\"" + htmlencode(t) 00028 + "\"" + params+ ">"); 00029 else if (rows == 0) 00030 p("<input type=textbox name=" + prefix + " value=\"" + htmlencode(t) 00031 + "\" size=" + cols + params+ ">"); 00032 else 00033 p("<textarea name=" + prefix + " rows=" + rows + " cols=" + cols 00034 + params + ">" + t + "</textarea>"); 00035 }
|
|
Reimplemented from Widget. Definition at line 18 of file TextBox.java. References Widget::display(). 00019 { 00020 display(hidden, ""); 00021 }
|
|
Reimplemented from Widget. Definition at line 13 of file TextBox.java. References Widget::loadAttribute(), and text. 00014 { 00015 text = loadAttribute(); 00016 }
|
|
Definition at line 3 of file TextBox.java. |
|
Definition at line 3 of file TextBox.java. |
|
Definition at line 4 of file TextBox.java. |