Interface ScreenHandle
- All Superinterfaces:
UiContainer
The currently active wizard screen. Adds install4j form-component access by id and the wizard
navigation methods on top of the generic widget lookup from
UiContainer.
Every form-component accessor comes in two flavors: a single-arg form that takes the
configured form-component id, and a no-arg form that returns the unique handle of that type on
this screen. The no-arg form throws
FormComponentNotFoundException if the screen contains
zero matching form component or FormComponentNotUniqueException
if more than one matching form components were found.
Reach this handle via Session.currentScreen().
-
Method Summary
Modifier and TypeMethodDescriptionbutton()Handle for the "Button" form component with the given id.voidcancel()Press the Cancel button.voidPress Cancel, then runhandler(typically catching the "Are you sure?" dialog).checkBox()Handle for the "Check box" form component with the given id.comboBox()Handle for the "Combo box" form component with the given id.Handle for the "Installation components selector" form component with the given id.Handle for the "Dark mode switcher" form component with the given id.dateSpinner(String id) Handle for the "Spinner of dates" form component with the given id.dateTextField(String id) Handle for the "Text field with date format" form component with the given id.Handle for the "Directory chooser" or "Installation directory chooser" form component with the given id.dropdownList(String id) Handle for the "Drop-down list" form component with the given id.Handle for the "File associations selector" form component with the given id.fileEditor(String id) Handle for the "Text file editor" form component with the given id.voidfinish()Press the Finish button on a terminal screen.voidPress Finish, then runhandler(typically catching a final alert).formComponent(String id) Generic handle over any form component, including user-defined ones.Handle for the "File chooser" form component with the given id.The current label of the Cancel button.Every install4j form-component id present on this screen, in document order.getId()The configured screen id.The current label of the Next button.The current label of the Previous button.The screen's subtitle.getTitle()The screen's title.booleanWhether this screen carries a form component with the given id.htmlDisplay(String id) Handle for the "HTML or text display" form component with the given id.Handle for the "Hyperlink action label" form component with the given id.hyperlinkLabel(String id) Handle for the "Hyperlink URL label" form component with the given id.Handle for the "Installation scope chooser" form component with the given id.Handle for the "Installation type" system screen.Handle for the "Text field with integer format" form component with the given id.booleanWhether the Cancel button is currently enabled.booleanWhether the Next button is currently enabled.booleanWhether the Previous button is currently enabled.keyValuePair(String id) Handle for the "Key value pair label" form component with the given id.label()Handle for the "Label" form component with the given id.license()Handle for the "License agreement" form component with the given id.list()Handle for the "List" form component with the given id.listSpinner(String id) Handle for the "Spinner of enumerated values" form component with the given id.logFileViewer(String id) Handle for the "Log file viewer" form component with the given id.maskTextField(String id) Handle for the "Text field with format mask" form component with the given id.Handle for the "Multi-line HTML label" form component with the given id.multilineLabel(String id) Handle for the "Multi-line label" form component with the given id.voidPress the Next button and wait for the next screen to activate.voidnextScreen(Runnable handler) Press the Next button, then runhandler(typically catching a dialog or alert the click triggers), then return without an implicit screen-change wait.numberSpinner(String id) Handle for the "Spinner of integer values" form component with the given id.passwordField(String id) Handle for the "Password field" form component with the given id.voidPress the Previous button and wait for the previous screen to activate.voidpreviousScreen(Runnable handler) LikenextScreen(Runnable)but for Previous.programGroup(String id) Handle for the "Program group selector" form component with the given id.progress()Handle for the "Progress display" form component with the given id.radioButton(String id) Handle for the "Single radio button" form component with the given id.radioButtons(String id) Handle for the "Radio button group" form component with the given id.Handle for the "Leading label" form component with the given id.slider()Handle for the "Slider" form component with the given id.Handle for the "Create program group" system screen..Handle for the "Streamlined installation chooser" form component with the given id.textArea()Handle for the "Text area" form component with the given id.Handle for the "Text field" form component with the given id.Handle for the "Update schedule selector" form component with the given id.userSelector(String id) Handle for the "Windows user selector" form component with the given id.Methods inherited from interface UiContainer
dumpAsString, saveScreenshot
-
Method Details
-
getId
The configured screen id. -
getTitle
The screen's title. -
getSubtitle
The screen's subtitle. -
getFormComponentIds
-
hasFormComponent
Whether this screen carries a form component with the given id. -
formComponent
Generic handle over any form component, including user-defined ones. -
textField
Handle for the "Text field" form component with the given id. -
textField
-
passwordField
Handle for the "Password field" form component with the given id. -
passwordField
-
textArea
Handle for the "Text area" form component with the given id. -
textArea
-
integerTextField
Handle for the "Text field with integer format" form component with the given id. -
integerTextField
-
maskTextField
Handle for the "Text field with format mask" form component with the given id. -
maskTextField
-
dateTextField
Handle for the "Text field with date format" form component with the given id. -
dateTextField
-
radioButton
Handle for the "Single radio button" form component with the given id. -
radioButton
-
checkBox
Handle for the "Check box" form component with the given id. -
checkBox
-
multilineLabel
Handle for the "Multi-line label" form component with the given id. -
multilineLabel
-
multilineHtmlLabel
Handle for the "Multi-line HTML label" form component with the given id. -
multilineHtmlLabel
-
hyperlinkLabel
Handle for the "Hyperlink URL label" form component with the given id. -
hyperlinkLabel
-
hyperlinkActionLabel
Handle for the "Hyperlink action label" form component with the given id. -
hyperlinkActionLabel
-
logFileViewer
Handle for the "Log file viewer" form component with the given id. -
logFileViewer
-
label
Handle for the "Label" form component with the given id. -
label
-
button
Handle for the "Button" form component with the given id. -
button
-
radioButtons
Handle for the "Radio button group" form component with the given id. -
radioButtons
-
comboBox
Handle for the "Combo box" form component with the given id. -
comboBox
-
dropdownList
Handle for the "Drop-down list" form component with the given id. -
dropdownList
-
list
Handle for the "List" form component with the given id. -
list
-
numberSpinner
Handle for the "Spinner of integer values" form component with the given id. -
numberSpinner
-
slider
Handle for the "Slider" form component with the given id. -
slider
-
listSpinner
Handle for the "Spinner of enumerated values" form component with the given id. -
listSpinner
-
dateSpinner
Handle for the "Spinner of dates" form component with the given id. -
dateSpinner
-
license
Handle for the "License agreement" form component with the given id. -
license
-
directoryChooser
Handle for the "Directory chooser" or "Installation directory chooser" form component with the given id. -
directoryChooser
-
progress
Handle for the "Progress display" form component with the given id. -
progress
-
installationScopeChooser
Handle for the "Installation scope chooser" form component with the given id. -
installationScopeChooser
-
componentSelector
Handle for the "Installation components selector" form component with the given id. -
componentSelector
-
htmlDisplay
Handle for the "HTML or text display" form component with the given id. -
htmlDisplay
-
keyValuePair
Handle for the "Key value pair label" form component with the given id. -
keyValuePair
-
formFileChooser
Handle for the "File chooser" form component with the given id. NamedformFileChooserto disambiguate fromSession.fileChooser(), which returns the modalJFileChooserdialog handle. -
formFileChooser
-
programGroup
Handle for the "Program group selector" form component with the given id. -
programGroup
-
updateScheduleSelector
Handle for the "Update schedule selector" form component with the given id. -
updateScheduleSelector
-
streamlinedInstallationChooser
Handle for the "Streamlined installation chooser" form component with the given id. -
streamlinedInstallationChooser
-
darkModeSwitcher
Handle for the "Dark mode switcher" form component with the given id. -
darkModeSwitcher
-
fileEditor
Handle for the "Text file editor" form component with the given id. -
fileEditor
-
fileAssociations
Handle for the "File associations selector" form component with the given id. -
fileAssociations
-
userSelector
Handle for the "Windows user selector" form component with the given id. -
userSelector
-
simpleLeadingLabel
Handle for the "Leading label" form component with the given id. -
simpleLeadingLabel
-
installationTypeSelector
Handle for the "Installation type" system screen. -
standardProgramGroup
Handle for the "Create program group" system screen.. -
nextScreen
void nextScreen()Press the Next button and wait for the next screen to activate. The common navigation primitive. If the click triggers a dialog or alert (e.g. validation failure, running-process check) instead of advancing, usenextScreen(Runnable)to handle it. -
nextScreen
Press the Next button, then runhandler(typically catching a dialog or alert the click triggers), then return without an implicit screen-change wait. The caller's nextonScreen(...)/waitForScreenChange()provides any further wait if the wizard does eventually advance.Use this for any click whose immediate consequence is something other than navigation: a running-processes dialog, a validation alert, a confirmation prompt.
-
previousScreen
void previousScreen()Press the Previous button and wait for the previous screen to activate. -
previousScreen
LikenextScreen(Runnable)but for Previous. -
cancel
void cancel()Press the Cancel button. Does not wait — cancel may either exit the wizard or pop a confirmation dialog. Follow withawaitExit()oronAlert { ... }as needed. -
cancel
Press Cancel, then runhandler(typically catching the "Are you sure?" dialog). -
finish
void finish()Press the Finish button on a terminal screen. Does not wait — there is no next screen; the wizard tears down. Follow withawaitExit()to confirm the installer exited. -
finish
Press Finish, then runhandler(typically catching a final alert). -
isNextEnabled
boolean isNextEnabled()Whether the Next button is currently enabled. -
isPreviousEnabled
boolean isPreviousEnabled()Whether the Previous button is currently enabled. -
isCancelEnabled
boolean isCancelEnabled()Whether the Cancel button is currently enabled. -
getNextButtonText
The current label of the Next button. -
getPreviousButtonText
The current label of the Previous button. -
getCancelButtonText
The current label of the Cancel button.
-