Interface PasswordDialogHandle
- All Superinterfaces:
DialogHandle, UiContainer
Typed handle for a password dialog.
The dialog has two modes: password-only and user-plus-password. The user methods only do something useful in the latter case, since the user text field is not laid out otherwise.
Reach this handle via Session.passwordDialog().
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancel the dialog without submitting credentials.voidconfirm()Confirm the dialog.The plain-text password currently typed in the password field.getUser()The username currently typed in the user field.setPassword(String password) Set the password.Set the username.Methods inherited from interface DialogHandle
clickWindowClose, getTitleMethods inherited from interface UiContainer
dumpAsString, saveScreenshot
-
Method Details
-
setUser
Set the username. Only meaningful in user-plus-password mode. -
getUser
The username currently typed in the user field. -
setPassword
Set the password. -
getPassword
The plain-text password currently typed in the password field. -
confirm
void confirm()Confirm the dialog. The runtime then runs whatever validator the caller configured and either accepts the input or re-opens the dialog. -
cancel
void cancel()Cancel the dialog without submitting credentials.
-