Class CustomPasswordField

All Implemented Interfaces:
Styleable, EventTarget, Skinnable

public class CustomPasswordField extends PasswordField
A base class for people wanting to customize a PasswordField to contain nodes inside the input field area itself, without being on top of the users typed-in text.

Whilst not exactly the same, refer to the CustomTextField javadoc for a screenshot and more detail. The obvious difference is that of course the CustomPasswordField masks the input from users, but in all other ways is equivalent to CustomTextField.

See Also:
  • Property Details

  • Constructor Details

    • CustomPasswordField

      public CustomPasswordField()
      Instantiates a default CustomPasswordField.
  • Method Details

    • leftProperty

      public final ObjectProperty<Node> leftProperty()
      Property representing the Node that is placed on the left of the password field.
      Returns:
      An ObjectProperty.
    • getLeft

      public final Node getLeft()
      Returns:
      The Node that is placed on the left of the password field.
    • setLeft

      public final void setLeft(Node value)
      Sets the Node that is placed on the left of the password field.
      Parameters:
      value -
    • rightProperty

      public final ObjectProperty<Node> rightProperty()
      Property representing the Node that is placed on the right of the password field.
      See Also:
    • getRight

      public final Node getRight()
      Returns:
      The Node that is placed on the right of the password field.
    • setRight

      public final void setRight(Node value)
      Sets the Node that is placed on the right of the password field.
      Parameters:
      value -
    • createDefaultSkin

      protected Skin<?> createDefaultSkin()
      Overrides:
      createDefaultSkin in class TextField
    • getUserAgentStylesheet

      public String getUserAgentStylesheet()
      Overrides:
      getUserAgentStylesheet in class Region