Class NamePassword

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name  
      private char[] password  
    • Constructor Summary

      Constructors 
      Constructor Description
      NamePassword​(java.lang.String name, char[] password)  
    • Field Detail

      • name

        private final java.lang.String name
      • password

        private final char[] password
    • Constructor Detail

      • NamePassword

        public NamePassword​(java.lang.String name,
                            char[] password)
    • Method Detail

      • 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 java.lang.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​(java.lang.String s)