Class FileDialogFactory
java.lang.Object
net.adoptopenjdk.icedteaweb.client.parts.dialogs.FileDialogFactory
This factory is used to create popup dialogs for file-related user interaction.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidshowCouldNotOpenDialog(Component frame, String message) Show a dialog informing the user that the file could not be opened.static voidshowCouldNotOpenFileDialog(Component frame, String filePath, FileUtils.OpenFileResult reason) Show an error dialog indicating the file could not be opened, with a particular reason.static voidshowCouldNotOpenFilepathDialog(Component frame, String filePath) Show a generic error dialog indicating the file could not be opened.static voidshowReadOnlyDialog(Component frame) Show a dialog informing the user that the file is currently read-only.
-
Constructor Details
-
FileDialogFactory
public FileDialogFactory()
-
-
Method Details
-
showReadOnlyDialog
-
showCouldNotOpenFilepathDialog
-
showCouldNotOpenFileDialog
public static void showCouldNotOpenFileDialog(Component frame, String filePath, FileUtils.OpenFileResult reason) Show an error dialog indicating the file could not be opened, with a particular reason.- Parameters:
frame- aJFrameto act as parent to this dialogfilePath- aStringrepresenting the path to the file we failed to openreason- aFileUtils.OpenFileResultspecifying more precisely why we failed to open the file
-
showCouldNotOpenDialog
-