Class NamePassword

java.lang.Object
net.adoptopenjdk.icedteaweb.ui.swing.dialogresults.NamePassword
All Implemented Interfaces:
DialogResult

public class NamePassword extends Object implements DialogResult
  • Field Details

    • name

      private final String name
    • password

      private final char[] password
  • Constructor Details

    • NamePassword

      public NamePassword(String name, char[] password)
  • Method Details

    • getButtonIndex

      public int getButtonIndex()
      Description copied from interface: DialogResult
      the index of the button. By convention 0 = Yes. 1 = No, 2 = Cancel/sandbox
      Specified by:
      getButtonIndex in interface DialogResult
      Returns:
      button to be preselected in dialogue
    • getName

      public String getName()
    • getPassword

      public char[] getPassword()
    • toBoolean

      public boolean toBoolean()
      Description copied from interface: DialogResult
      Simplified decision model whether dialog was approved or not.
      Specified by:
      toBoolean in interface DialogResult
      Returns:
      true only and only if dialog was approved
    • readValue

      public static NamePassword readValue(String s)
    • writeValue

      public String writeValue()
      Specified by:
      writeValue in interface DialogResult