Class TextComponentPassword

All Implemented Interfaces:
Animation, Editable, StyleListener, Iterable<Component>

public class TextComponentPassword extends TextComponent
TextComponent extended to automatically add mask/unmask password button near the TextField; it acts like a normal TextComponent if the Constraint is not TextArea.PASSWORD
  • Constructor Details

    • TextComponentPassword

      public TextComponentPassword()
  • Method Details

    • label

      public TextComponentPassword label(String text)

      Overridden for covariant return type

      Overridden for covariant return type

      Sets the text of the label

      Parameters
      • text: the text
      Returns

      this for chaining calls E.g. TextComponent tc = new TextComponent().text("Text").label("Label");

      Overrides:
      label in class TextComponent
    • labelAndHint

      public TextComponentPassword labelAndHint(String text)

      Overridden for covariant return type

      Convenience method for setting the label and hint together

      Parameters
      • text: the text and hint
      Returns

      this for chaining calls E.g. TextComponent tc = new TextComponent().text("Text").label("Label");

      Overrides:
      labelAndHint in class TextComponent
    • hint

      public TextComponentPassword hint(String hint)

      Overridden for covariant return type

      Sets the hint of the field

      Parameters
      • hint: the text of the hint
      Returns

      this for chaining calls E.g. TextComponent tc = new TextComponent().text("Text").label("Label");

      Overrides:
      hint in class TextComponent
    • hint

      public TextComponentPassword hint(Image hint)

      Overridden for covariant return type

      Sets the hint of the field

      Parameters
      • hint: the icon for the hint
      Returns

      this for chaining calls E.g. TextComponent tc = new TextComponent().text("Text").label("Label");

      Overrides:
      hint in class TextComponent