Module org.jhotdraw8.application
Class FileURIChooser
java.lang.Object
org.jhotdraw8.application.controls.urichooser.FileURIChooser
- All Implemented Interfaces:
URIChooser
FileURIChooser.
- Author:
- Werner Randelshofer
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFileURIChooser(@NonNull FileURIChooser.Mode newValue) FileURIChooser(@NonNull FileURIChooser.Mode newValue, @NonNull List<URIExtensionFilter> extensionFilters) -
Method Summary
Modifier and TypeMethodDescription@Nullable javafx.scene.input.DataFormatGets the data format that the user selected.@NonNull javafx.stage.FileChoosergetMode()voidsetExtensionFilters(List<URIExtensionFilter> filters) voidsetMode(FileURIChooser.Mode newValue) showDialog(javafx.stage.Window parent) Pops up an URI chooser dialog.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.application.controls.urichooser.URIChooser
showDialog
-
Constructor Details
-
FileURIChooser
public FileURIChooser() -
FileURIChooser
-
FileURIChooser
public FileURIChooser(@NonNull FileURIChooser.Mode newValue, @NonNull List<URIExtensionFilter> extensionFilters)
-
-
Method Details
-
setMode
-
getMode
-
getFileChooser
-
showDialog
Description copied from interface:URIChooserPops up an URI chooser dialog.- Specified by:
showDialogin interfaceURIChooser- Parameters:
parent- the parent component of the dialog, can benull; seeshowDialogfor details- Returns:
- the selected URIs if a selection has been made.
-
setExtensionFilters
-
getDataFormat
Description copied from interface:URIChooserGets the data format that the user selected.- Specified by:
getDataFormatin interfaceURIChooser- Returns:
- data format, or null if the user did not explicitly select a format
-