Interface FormFileChooserHandle
- All Superinterfaces:
FormComponentHandle
Handle for the "File chooser" form component. The principal Swing widget is the
JTextField holding the path, paired with a Browse button that opens a
JFileChooser dialog.
Not to be confused with com.install4j.api.test.ui.FileChooserHandle, which
wraps the modal JFileChooser dialog shown by the Browse button.
Reach this handle via ScreenHandle.formFileChooser().
-
Method Summary
Modifier and TypeMethodDescriptionassertFile(File expected) Assert the currently selected file equals the expected value.browse()Click the Browse button.getFile()The currently selected file.Set the selected file.Methods inherited from interface FormComponentHandle
getId, isEnabled, isVisible
-
Method Details
-
getFile
The currently selected file. -
setFile
Set the selected file. -
browse
Click the Browse button. The resultingJFileChooserdialog can be reached viasession.fileChooser. -
assertFile
Assert the currently selected file equals the expected value. -
assertEnabled
- Specified by:
assertEnabledin interfaceFormComponentHandle
-
assertDisabled
- Specified by:
assertDisabledin interfaceFormComponentHandle
-
assertVisible
- Specified by:
assertVisiblein interfaceFormComponentHandle
-
assertInvisible
- Specified by:
assertInvisiblein interfaceFormComponentHandle
-