org.apache.click.control
Class PasswordField

java.lang.Object
  extended by org.apache.click.control.AbstractControl
      extended by org.apache.click.control.Field
          extended by org.apache.click.control.TextField
              extended by org.apache.click.control.PasswordField
All Implemented Interfaces:
Serializable, Control, Stateful

public class PasswordField
extends TextField

Provides a Password Field control:   <input type='password'>.

Password Field
For an PasswordField code example see the Form Javadoc example.

See also W3C HTML reference INPUT

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.click.control.TextField
maxLength, minLength, size, VALIDATE_TEXTFIELD_FUNCTION
 
Fields inherited from class org.apache.click.control.Field
disabled, error, focus, form, help, label, labelStyle, labelStyleClass, parentStyleClassHint, parentStyleHint, readonly, required, tabindex, title, trim, validate, value
 
Fields inherited from class org.apache.click.control.AbstractControl
actionListener, attributes, behaviors, headElements, listener, listenerMethod, messages, name, parent, styles
 
Fields inherited from interface org.apache.click.Control
CONTROL_MESSAGES
 
Constructor Summary
PasswordField()
          Create a PasswordField with no name defined.
PasswordField(String name)
          Construct a PasswordField with the given name.
PasswordField(String name, boolean required)
          Construct a PasswordField with the given name and required status.
PasswordField(String name, String label)
          Construct a PasswordField with the given name and label.
PasswordField(String name, String label, boolean required)
          Construct a PasswordField with the given name, label and required status.
PasswordField(String name, String label, int size)
          Construct a PasswordField with the given name, label and size.
PasswordField(String name, String label, int size, boolean required)
          Construct the PasswordField with the given name, label, size and required status.
 
Method Summary
 String getType()
          Return the input type: 'password'.
 
Methods inherited from class org.apache.click.control.TextField
getControlSizeEst, getMaxLength, getMinLength, getSize, getTag, getValidationJavaScript, render, setMaxLength, setMinLength, setSize, validate
 
Methods inherited from class org.apache.click.control.Field
bindRequestValue, getError, getErrorLabel, getFocus, getFocusJavaScript, getForm, getHelp, getId, getLabel, getLabelStyle, getLabelStyleClass, getParentStyleClassHint, getParentStyleHint, getRequestValue, getState, getTabIndex, getTextAlign, getTitle, getValidate, getValue, getValueObject, getWidth, isDisabled, isHidden, isReadonly, isRequired, isTrim, isValid, onProcess, removeState, renderTagBegin, restoreState, saveState, setDisabled, setError, setErrorMessage, setErrorMessage, setFocus, setForm, setHelp, setLabel, setLabelStyle, setLabelStyleClass, setListener, setParent, setParentStyleClassHint, setParentStyleHint, setReadonly, setRequired, setState, setTabIndex, setTextAlign, setTitle, setTrim, setValidate, setValue, setValueObject, setWidth
 
Methods inherited from class org.apache.click.control.AbstractControl
addBehavior, addStyleClass, appendAttributes, dispatchActionEvent, getActionListener, getAttribute, getAttributes, getBehaviors, getContext, getHeadElements, getHtmlImports, getMessage, getMessage, getMessages, getName, getPage, getParent, getStyle, getStyles, hasAttribute, hasAttributes, hasBehaviors, hasStyles, isAjaxTarget, onDeploy, onDestroy, onInit, onRender, removeBehavior, removeStyleClass, renderTagEnd, setActionListener, setAttribute, setId, setName, setStyle, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 field
required - 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 field
label - 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 field
label - the label of the field
required - the field required status

PasswordField

public PasswordField(String name,
                     String label,
                     int size)
Construct a PasswordField with the given name, label and size.

Parameters:
name - the name of the field
label - the label of the field
size - the size of the field

PasswordField

public PasswordField(String name,
                     String label,
                     int size,
                     boolean required)
Construct the PasswordField with the given name, label, size and required status.

Parameters:
name - the name of the field
label - the label of the field
size - the size of the field
required - 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.

Method Detail

getType

public String getType()
Return the input type: 'password'.

Overrides:
getType in class TextField
Returns:
the input type: 'password'