Class NamePassword
- java.lang.Object
-
- net.adoptopenjdk.icedteaweb.ui.swing.dialogresults.NamePassword
-
- All Implemented Interfaces:
DialogResult
public class NamePassword extends java.lang.Object implements DialogResult
-
-
Constructor Summary
Constructors Constructor Description NamePassword(java.lang.String name, char[] password)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetButtonIndex()the index of the button.java.lang.StringgetName()char[]getPassword()static NamePasswordreadValue(java.lang.String s)booleantoBoolean()Simplified decision model whether dialog was approved or not.java.lang.StringwriteValue()
-
-
-
Method Detail
-
getButtonIndex
public int getButtonIndex()
Description copied from interface:DialogResultthe index of the button. By convention 0 = Yes. 1 = No, 2 = Cancel/sandbox- Specified by:
getButtonIndexin interfaceDialogResult- 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:DialogResultSimplified decision model whether dialog was approved or not.- Specified by:
toBooleanin interfaceDialogResult- Returns:
- true only and only if dialog was approved
-
readValue
public static NamePassword readValue(java.lang.String s)
-
writeValue
public java.lang.String writeValue()
- Specified by:
writeValuein interfaceDialogResult
-
-