public static final class ChooseFile.FileChooserImpl extends Object implements ChooseFile.FileChooser
ChooseFile.FileChooser
: uses the standard
JFileChooser.Constructor and Description |
---|
FileChooserImpl() |
Modifier and Type | Method and Description |
---|---|
File |
chooseOpenDirectory(Component parentComponent,
File template,
ChooseFileOptions options)
Displays file chooser dialog box configured to let the user
select an existing directory.
|
File |
chooseOpenFile(Component parentComponent,
File template,
ChooseFileOptions options)
Displays file chooser dialog box configured to let the user
select an existing file.
|
File |
chooseSaveDirectory(Component parentComponent,
File template,
ChooseFileOptions options)
Displays file chooser dialog box configured to let the user select a
directory, existing or not.
|
File |
chooseSaveFile(Component parentComponent,
File template,
ChooseFileOptions options)
Displays file chooser dialog box configured to let the user select a
file, existing or not.
|
public File chooseOpenFile(Component parentComponent, File template, ChooseFileOptions options)
ChooseFile.FileChooser
chooseOpenFile
in interface ChooseFile.FileChooser
parentComponent
- used to find a parent for the
displayed dialog boxtemplate
- used as a template for the file to be selected. Only
used to specify initial directory. May be null
.options
- dialog box options. May be null
.null
if user has canceled the
selection.public File chooseSaveFile(Component parentComponent, File template, ChooseFileOptions options)
ChooseFile.FileChooser
chooseSaveFile
in interface ChooseFile.FileChooser
parentComponent
- used to find a parent for
the displayed dialog boxtemplate
- used as a template for the file to be selected.
Used to specify both initial directory and suggested selection.
May be null
.options
- dialog box options. May be null
.null
if user has canceled the
selection.public File chooseOpenDirectory(Component parentComponent, File template, ChooseFileOptions options)
ChooseFile.FileChooser
chooseOpenDirectory
in interface ChooseFile.FileChooser
parentComponent
- used to find a parent for
the displayed dialog boxtemplate
- used as a template for the directory to be selected.
Only used to specify initial directory. May be null
.options
- dialog box options. May be null
.null
if user has canceled the
selection.public File chooseSaveDirectory(Component parentComponent, File template, ChooseFileOptions options)
ChooseFile.FileChooser
chooseSaveDirectory
in interface ChooseFile.FileChooser
parentComponent
- used to find a parent for
the displayed dialog boxtemplate
- used as a template for the directory to be selected.
Used to specify both initial directory and suggested selection.
May be null
.options
- dialog box options. May be null
.null
if user has canceled the
selection.