Interface LanguageSelectionDialogHandle
- All Superinterfaces:
DialogHandle, UiContainer
Typed handle for the install4j startup language-selection dialog. Exposes ISO language codes
rather than localized display names, since display names depend on the dialog's currently
loaded resource bundle and are unstable across language switches.
Reach this handle via Session.languageDialog().
-
Method Summary
Modifier and TypeMethodDescriptionThe ISO codes of every language offered in the dialog, in display order.voidcancel()Cancel the dialog.voidconfirm()Confirm the dialog with the currently highlighted selection.The ISO code of the language currently highlighted in the drop-down, or the empty string if no language is selected.selectLanguage(String isoCode) Select the language identified by the given ISO code, for example"fr".Methods inherited from interface DialogHandle
clickWindowClose, getTitleMethods inherited from interface UiContainer
dumpAsString, saveScreenshot
-
Method Details
-
availableLanguages
-
selectedLanguage
The ISO code of the language currently highlighted in the drop-down, or the empty string if no language is selected. -
selectLanguage
Select the language identified by the given ISO code, for example"fr". ThrowsInstallerTestExceptionif no configured language matches. -
confirm
void confirm()Confirm the dialog with the currently highlighted selection. -
cancel
void cancel()Cancel the dialog. The installer exits with code 1.
-