Module org.jhotdraw8.application
Interface URIChooser
- All Known Implementing Classes:
DirectoryURIChooser,FileURIChooser
public interface URIChooser
URIChooser provides a mechanism for the user to choose an URI.- Author:
- Werner Randelshofer
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable javafx.scene.input.DataFormatGets the data format that the user selected.showDialog(@Nullable javafx.scene.Node node) Pops up an URI chooser dialog.showDialog(@Nullable javafx.stage.Window parent) Pops up an URI chooser dialog.
-
Method Details
-
showDialog
Pops up an URI chooser dialog.- Parameters:
parent- the parent component of the dialog, can benull; seeshowDialogfor details- Returns:
- the selected URIs if a selection has been made.
-
showDialog
Pops up an URI chooser dialog.- Parameters:
node- the parent component of the dialog, can benull; seeshowDialogfor details- Returns:
- the selected URIs or an empty list if no selection has been made.
-
getDataFormat
Gets the data format that the user selected.- Returns:
- data format, or null if the user did not explicitly select a format
-