Class NamePassword
java.lang.Object
net.adoptopenjdk.icedteaweb.ui.swing.dialogresults.NamePassword
- All Implemented Interfaces:
DialogResult
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintthe index of the button.getName()char[]static NamePasswordbooleanSimplified decision model whether dialog was approved or not.
-
Field Details
-
name
-
password
private final char[] password
-
-
Constructor Details
-
NamePassword
-
-
Method Details
-
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
-
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
-
writeValue
- Specified by:
writeValuein interfaceDialogResult
-