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