Package swingtree

Class UIForPasswordField<F extends JPasswordField>


public final class UIForPasswordField<F extends JPasswordField> extends UIForAnyTextComponent<UIForPasswordField<F>,F>
A SwingTree builder node designed for configuring JPasswordField instances.
  • Method Details

    • _state

      protected swingtree.BuilderState<F> _state()
      Description copied from class: UIForAnything
      Returns the state of the builder, which is a container for the wrapped component as well as it's type and current EventProcessor.
      Specified by:
      _state in class UIForAnything<UIForPasswordField<F extends JPasswordField>,F extends JPasswordField,JComponent>
      Returns:
      The state of the builder.
    • _newBuilderWithState

      protected UIForPasswordField<F> _newBuilderWithState(swingtree.BuilderState<F> newState)
      Description copied from class: UIForAnything
      An internal wither method which creates a new builder instance with the provided BuilderState stored inside it.
      Specified by:
      _newBuilderWithState in class UIForAnything<UIForPasswordField<F extends JPasswordField>,F extends JPasswordField,JComponent>
      Parameters:
      newState - The new state which should be stored inside the new builder instance.
      Returns:
      A new builder instance with the provided state stored inside it.
    • withEchoChar

      public final UIForPasswordField<F> withEchoChar(char echoChar)
      Sets the echo character for this JPasswordField. Note that this is largely a suggestion, since the view that gets installed can use whatever graphic techniques it desires to represent the field. Setting a value of 0 indicates that you wish to see the text as it is typed, similar to the behavior of a standard JTextField.
      Parameters:
      echoChar - The echo character to display.
      Returns:
      This very instance, which enables builder-style method chaining.
    • withEchoChar

      public final UIForPasswordField<F> withEchoChar(sprouts.Val<Character> echoChar)
      Binds to a echo character property for this JPasswordField. Note that this is largely a suggestion, since the view that gets installed can use whatever graphic techniques it desires to represent the field. Setting a value of 0 indicates that you wish to see the text as it is typed, similar to the behavior of a standard JTextField.
      Parameters:
      echoChar - The echo character property to display dynamically.
      Returns:
      This very instance, which enables builder-style method chaining.