Interface DirectoryChooserHandle
- All Superinterfaces:
FormComponentHandle
Handle for the "Directory chooser" or "Installation directory chooser" form component.
The principal Swing widget is the
JTextField holding the selected directory's path.
Reach this handle via ScreenHandle.directoryChooser().
-
Method Summary
Modifier and TypeMethodDescriptionassertDirectory(File expected) Assert the currently selected directory equals the expected value, compared as absolute paths.Assert the currently selected directory exists on disk.browse()Click the Browse button.The currently selected directory.setDirectory(File directory) Set the selected directory.Methods inherited from interface FormComponentHandle
getId, isEnabled, isVisible
-
Method Details
-
getDirectory
The currently selected directory. -
setDirectory
Set the selected directory. -
browse
Click the Browse button. The resultingJFileChooserdialog is reachable viasession.fileChooser. -
assertDirectory
Assert the currently selected directory equals the expected value, compared as absolute paths. -
assertExists
Assert the currently selected directory exists on disk. -
assertEnabled
- Specified by:
assertEnabledin interfaceFormComponentHandle
-
assertDisabled
- Specified by:
assertDisabledin interfaceFormComponentHandle
-
assertVisible
- Specified by:
assertVisiblein interfaceFormComponentHandle
-
assertInvisible
- Specified by:
assertInvisiblein interfaceFormComponentHandle
-