fc.web.forms
Class Text
java.lang.Object
fc.web.forms.Field
fc.web.forms.AbstractText
fc.web.forms.MaxSizable
fc.web.forms.Text
public final class Text
- extends MaxSizable
Represents an HTML text field
Nested classes/interfaces inherited from class fc.web.forms.Field |
Field.Type |
Constructor Summary |
Text(java.lang.String name)
Creates a new text element with a initial value of "". |
Text(java.lang.String name,
java.lang.String value)
Creates a new text element with the specified initial value. |
Methods inherited from class fc.web.forms.AbstractText |
getBooleanValue, getDoubleValue, getFloatValue, getIntValue, getShortValue, getStringValue, getValue, isFilled, reset, setValue, setValue, setValueFromSubmit, toString, trimValues |
Methods inherited from class fc.web.forms.Field |
add, addError, addLabel, addString, disable, disable, enable, enable, getLabel, getName, getValidateErrors, isEnabled, render, render, render, renderError, renderError, renderStyleTag, setStyleTag, validate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Text
public Text(java.lang.String name)
- Creates a new text element with a initial value of "".
Text
public Text(java.lang.String name,
java.lang.String value)
- Creates a new text element with the specified initial value.
If the specified value is null, then the initial
value is set to "" (the empty string).
getType
public Field.Type getType()
- Description copied from class:
Field
- Subclasses should return an appropriate
Field.Type
. This type
is rendered as part of <input type= ...
- Specified by:
getType
in class Field
renderImpl
public void renderImpl(FormData fd,
java.io.Writer writer)
throws java.io.IOException
- Specified by:
renderImpl
in class Field
- Throws:
java.io.IOException