|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jdc.lang.Object
|
+--com.jdc.gui.html.form.FormField
|
+--com.jdc.gui.html.form.field.TextField
TextField is a user interface widget that creates an input text field
consisting of a label and an input entry field to be displayed to the user.
Input| Nested Class Summary |
| Nested classes inherited from class com.jdc.gui.html.form.FormField |
FormField.Label |
| Field Summary |
| Fields inherited from class com.jdc.gui.html.form.FormField |
COLUMN, DISABLED, ENABLED, ERROR, REQUIRED, ROW, WARNING |
| Fields inherited from class com.jdc.lang.Object |
string |
| Constructor Summary | |
TextField()
Constructs a TextField object. |
|
| Method Summary | |
TextField |
addAsterisk()
Sets a flag to add an asterisk to the text field label. |
TextField |
addColumn()
Sets a flag to add column tags to the text field. |
TextField |
addRow()
Sets a flag to add row tags to the text field. |
String |
create()
Create the text field to be displayed to the user. |
String |
getAlign()
Returns the text label and input field alignment. |
String |
getErrorMessage()
Returns the text field error message. |
String |
getField()
Returns the basic text input field definition. |
String |
getLabel()
Returns the basic text field label definition. |
String |
getName()
Returns the text field name. |
String |
getPadding()
Returns the text field padding. |
int |
getSize()
Returns the text field size. |
String |
getStatus()
Returns the text field status. |
String |
getText()
Returns the text field label. |
String |
getTip()
Returns the text field tip. |
String |
getValue()
Returns the text field value. |
boolean |
hasValue()
Returns true if the text field has a value. |
boolean |
isAsterisk()
Returns true if an asterisk is to be added to the text field label. |
boolean |
isChanged()
Returns true if the text field value input by the user has changed. |
boolean |
isError()
Returns true if the text field value input by the user is in error. |
boolean |
isRequired()
Returns true if the text field requires user input. |
boolean |
isWarning()
Returns true if the text field value input by the user is acceptable but should be confirmed by the user. |
void |
reset()
Reset the text field. |
void |
resetMessages()
Reset the text field messages ONLY. |
void |
setAlign(String align)
Sets the text label and input field alignment. |
void |
setError()
Sets the text field error flag to true. |
void |
setError(boolean error)
Sets the text field error flag. |
void |
setError(String errorMessage)
Sets the text field error flag and error message. |
void |
setErrorMessage(String errorMessage)
Sets the text field error message. |
void |
setLabel(String label)
Sets the text field label. |
void |
setName(String name)
Sets the text field name. |
void |
setPadding(int padding)
Sets the text field padding. |
void |
setReadOnly()
Sets the text field read only flag to true. |
void |
setReadOnly(boolean readOnly)
Sets the text field read only flag. |
void |
setRequired()
Sets the text field required flag to true. |
void |
setRequired(boolean required)
Sets the text field required flag. |
void |
setSize(int size)
Sets the text field size. |
void |
setStatus(String status)
Sets the text field status. |
void |
setTip(String tip)
Sets the text field tip. |
void |
setValue(String value)
Sets the text field value. |
void |
setWarning()
Sets the text field warning flag to true. |
void |
setWarning(boolean warning)
Sets the text field warning flag. |
void |
setWarning(String warningMessage)
Sets the text field warning flag and warning message. |
String |
toString()
Returns a String representation of the TextField object. |
| Methods inherited from class com.jdc.gui.html.form.FormField |
add, getType, isAddColumn, isAddRow, setType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TextField()
| Method Detail |
public TextField addAsterisk()
public TextField addColumn()
public TextField addRow()
public String create()
public String getAlign()
public String getErrorMessage()
public String getField()
public String getLabel()
public String getName()
public String getPadding()
public int getSize()
public String getStatus()
public String getText()
public String getTip()
public String getValue()
public boolean hasValue()
public boolean isAsterisk()
public boolean isChanged()
isChanged in class FormFieldpublic boolean isError()
isError in class FormFieldpublic boolean isRequired()
public boolean isWarning()
public void reset()
reset in class FormFieldpublic void resetMessages()
public void setAlign(String align)
public void setError()
public void setError(boolean error)
public void setError(String errorMessage)
public void setErrorMessage(String errorMessage)
public void setLabel(String label)
public void setName(String name)
public void setPadding(int padding)
public void setReadOnly()
public void setReadOnly(boolean readOnly)
public void setRequired()
public void setRequired(boolean required)
public void setSize(int size)
public void setStatus(String status)
public void setTip(String tip)
public void setValue(String value)
public void setWarning()
public void setWarning(boolean warning)
public void setWarning(String warningMessage)
public String toString()
toString in class Object
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||