Interface FileChooserHandle
public interface FileChooserHandle
A modal
JFileChooser shown by a Browse button on a "Directory chooser" or
"File chooser" form component.
Reach this handle via Session.fileChooser().
-
Method Summary
Modifier and TypeMethodDescriptionvoidapprove()Click the chooser's Approve button, typically "Open" or "Save".voidcancel()Click the chooser's Cancel button.The directory the chooser is currently showing.The currently selected file, ornullif none is selected.selectDirectory(File directory) Select the given directory in the chooser.selectFile(File file) Select the given file in the chooser.
-
Method Details
-
selectFile
Select the given file in the chooser. -
selectDirectory
Select the given directory in the chooser. -
approve
void approve()Click the chooser's Approve button, typically "Open" or "Save". -
cancel
void cancel()Click the chooser's Cancel button. -
getCurrentDirectory
The directory the chooser is currently showing. -
getSelectedFile
The currently selected file, ornullif none is selected.
-