Package jexer

Class TPasswordField

  • All Implemented Interfaces:
    java.lang.Comparable<TWidget>, EditMenuUser

    public class TPasswordField
    extends TField
    TPasswordField implements an editable text field that displays stars/asterisks when it is not active.
    • Constructor Detail

      • TPasswordField

        public TPasswordField​(TWidget parent,
                              int x,
                              int y,
                              int width,
                              boolean fixed)
        Public constructor.
        Parameters:
        parent - parent widget
        x - column relative to parent
        y - row relative to parent
        width - visible text width
        fixed - if true, the text cannot exceed the display width
      • TPasswordField

        public TPasswordField​(TWidget parent,
                              int x,
                              int y,
                              int width,
                              boolean fixed,
                              java.lang.String text)
        Public constructor.
        Parameters:
        parent - parent widget
        x - column relative to parent
        y - row relative to parent
        width - visible text width
        fixed - if true, the text cannot exceed the display width
        text - initial text, default is empty string
      • TPasswordField

        public TPasswordField​(TWidget parent,
                              int x,
                              int y,
                              int width,
                              boolean fixed,
                              java.lang.String text,
                              TAction enterAction,
                              TAction updateAction)
        Public constructor.
        Parameters:
        parent - parent widget
        x - column relative to parent
        y - row relative to parent
        width - visible text width
        fixed - if true, the text cannot exceed the display width
        text - initial text, default is empty string
        enterAction - function to call when enter key is pressed
        updateAction - function to call when the text is updated
    • Method Detail

      • draw

        public void draw()
        Draw the text field.
        Overrides:
        draw in class TField