fc.web.forms
Class Password

java.lang.Object
  extended by fc.web.forms.Field
      extended by fc.web.forms.AbstractText
          extended by fc.web.forms.MaxSizable
              extended by fc.web.forms.Password

public final class Password
extends MaxSizable

Encapsulates a password field.


Nested Class Summary
 
Nested classes/interfaces inherited from class fc.web.forms.Field
Field.Type
 
Constructor Summary
Password(String name)
          Creates a new password element with the initial value set to an empty string.
Password(String name, String initialValue)
          Creates a new password 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

Password

public Password(String name)
Creates a new password element with the initial value set to an empty string.


Password

public Password(String name,
                String initialValue)
Creates a new password element with the specified initial value. Note, in most cases the intial value should be and will be an empty string. If the specified value is null, then the initial value is set to "" (the empty string).

Method Detail

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,
                       Writer writer)
                throws IOException
Specified by:
renderImpl in class Field
Throws:
IOException