Class Text

  extended by fc.web.forms.Field
      extended by fc.web.forms.AbstractText
          extended by fc.web.forms.MaxSizable
              extended by fc.web.forms.Text

public final class Text
extends MaxSizable

Represents an HTML text field

Nested Class Summary
Nested classes/interfaces inherited from class fc.web.forms.Field
Constructor Summary
Text(String name)
          Creates a new text element with a initial value of "".
Text(String name, String value)
          Creates a new text element with the specified initial value.
Method Summary
 Field.Type getType()
          Subclasses should return an appropriate Field.Type.
 void renderImpl(FormData fd, Writer writer)
Methods inherited from class fc.web.forms.MaxSizable
setMaxSize, setSize
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

Constructor Detail


public Text(String name)
Creates a new text element with a initial value of "".


public Text(String name,
            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).

Method Detail


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


public void renderImpl(FormData fd,
                       Writer writer)
                throws IOException
Specified by:
renderImpl in class Field