Class PasswordControl

All Implemented Interfaces:
Serializable, Cloneable, Copyable, DictionaryBean, UifDictionaryBean, Component, Ordered, ScriptEventSupport, Control, SizedControl, ContentElement, LifecycleElement, org.springframework.core.Ordered

public class PasswordControl extends ControlBase implements SizedControl
Represents a HTML password text control, rendered as a input field of type 'password'. This can receive and display a mask for a single value.
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Constructor Details

    • PasswordControl

      public PasswordControl()
  • Method Details

    • performFinalize

      public void performFinalize(Object model, LifecycleElement parent)
      The following actions are performed:
      • Defaults maxLength, minLength (if not set) to maxLength of parent field
      Parses the disabled expressions, if any, to equivalent javascript and evaluates the disable/enable when changed property names.
      Specified by:
      performFinalize in interface LifecycleElement
      Overrides:
      performFinalize in class ControlBase
      Parameters:
      model - top level object containing the data
      parent - parent component
    • getSize

      public int getSize()
      Description copied from interface: SizedControl
      Retrieves the configured size for the control, which reflects the display width in characters for the control within the UI
      Specified by:
      getSize in interface SizedControl
      Returns:
      int control size
      See Also:
    • setSize

      public void setSize(int size)
      Description copied from interface: SizedControl
      Sets the size for the control
      Specified by:
      setSize in interface SizedControl
      Parameters:
      size -
      See Also:
    • getMaxLength

      public Integer getMaxLength()
      Maximum number of characters that can be inputted

      If not set on control, max length of field will be used

      Returns:
      max number of characters
    • setMaxLength

      public void setMaxLength(Integer maxLength)
      Setter for the max number of input characters
      Parameters:
      maxLength -
    • getMinLength

      public Integer getMinLength()
      Minimum number of characters that can be inputted

      If not set on control, min length of field will be used

      Returns:
      max number of characters
    • setMinLength

      public void setMinLength(Integer minLength)
      Setter for the min number of input characters
      Parameters:
      minLength -
    • getWatermarkText

      public String getWatermarkText()
      Gets the watermark text for this PasswordControl.

      A watermark typically appears as light gray text within the Password input element whenever the element is empty and does not have focus. This provides a hint to the user as to what the input is used for, or the type of input that is required.

      Returns:
      the watermarkText
    • setWatermarkText

      public void setWatermarkText(String watermarkText)
      Sets the watermark text for this PasswordControl
      Parameters:
      watermarkText - the watermarkText to set