net.sf.click.control
Class PasswordField
java.lang.Object
net.sf.click.control.AbstractControl
net.sf.click.control.Field
net.sf.click.control.TextField
net.sf.click.control.PasswordField
- All Implemented Interfaces:
- Control, Serializable
- public class PasswordField
- extends TextField
Provides a Password Field control: <input type='password'>.
For an PasswordField code example see the Form
Javadoc example.
See also W3C HTML reference
INPUT
- Author:
- Malcolm Edgar
- See Also:
- Serialized Form
Fields inherited from class net.sf.click.control.Field |
disabled, error, focus, form, help, label, readonly, required, tabindex, title, validate, value |
Method Summary |
String |
getType()
Return the input type: 'password'. |
Methods inherited from class net.sf.click.control.TextField |
getControlSizeEst, getMaxLength, getMinLength, getSize, getTag, getValidationJavaScript, render, setMaxLength, setMinLength, setSize, validate |
Methods inherited from class net.sf.click.control.Field |
bindRequestValue, getError, getErrorLabel, getFocus, getFocusJavaScript, getForm, getHelp, getId, getLabel, getRequestValue, getTabIndex, getTextAlign, getTitle, getValidate, getValue, getValueObject, getWidth, isDisabled, isHidden, isReadonly, isRequired, isValid, onInit, onProcess, setDisabled, setError, setErrorMessage, setErrorMessage, setErrorMessage, setErrorMessage, setFocus, setForm, setHelp, setLabel, setListener, setParent, setReadonly, setRequired, setTabIndex, setTextAlign, setTitle, setValidate, setValue, setValueObject, setWidth |
Methods inherited from class net.sf.click.control.AbstractControl |
addStyleClass, appendAttributes, getActionListener, getAttribute, getAttributes, getContext, getHtmlImports, getMessage, getMessage, getMessage, getMessages, getName, getPage, getParent, getStyle, getStyles, hasAttribute, hasAttributes, hasStyles, onDeploy, onDestroy, onRender, registerActionEvent, removeStyleClass, renderTagBegin, renderTagEnd, setActionListener, setAttribute, setId, setName, setStyle, toString |
PasswordField
public PasswordField(String name)
- Construct a PasswordField with the given name. The default password
field size is 20 characters.
- Parameters:
name
- the name of the field
PasswordField
public PasswordField(String name,
boolean required)
- Construct a PasswordField with the given name and required status. The
default password field size is 20 characters.
- Parameters:
name
- the name of the fieldrequired
- the field required status
PasswordField
public PasswordField(String name,
String label)
- Construct a PasswordField with the given name and label. The default
password field size is 20 characters.
- Parameters:
name
- the name of the fieldlabel
- the label of the field
PasswordField
public PasswordField(String name,
String label,
boolean required)
- Construct a PasswordField with the given name, label and required status.
The default password field size is 20 characters.
- Parameters:
name
- the name of the fieldlabel
- the label of the fieldrequired
- the field required status
PasswordField
public PasswordField()
- Create a PasswordField with no name defined.
Please note the control's name must be defined before it is valid.
getType
public String getType()
- Return the input type: 'password'.
- Overrides:
getType
in class TextField
- Returns:
- the input type: 'password'