Class FileDialogFactory
- java.lang.Object
-
- net.adoptopenjdk.icedteaweb.client.parts.dialogs.FileDialogFactory
-
public final class FileDialogFactory extends java.lang.ObjectThis factory is used to create popup dialogs for file-related user interaction.
-
-
Constructor Summary
Constructors Constructor Description FileDialogFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidshowCouldNotOpenDialog(java.awt.Component frame, java.lang.String message)Show a dialog informing the user that the file could not be opened.static voidshowCouldNotOpenFileDialog(java.awt.Component frame, java.lang.String filePath, FileUtils.OpenFileResult reason)Show an error dialog indicating the file could not be opened, with a particular reason.static voidshowCouldNotOpenFilepathDialog(java.awt.Component frame, java.lang.String filePath)Show a generic error dialog indicating the file could not be opened.static voidshowReadOnlyDialog(java.awt.Component frame)Show a dialog informing the user that the file is currently read-only.
-
-
-
Method Detail
-
showReadOnlyDialog
public static void showReadOnlyDialog(java.awt.Component frame)
Show a dialog informing the user that the file is currently read-only.- Parameters:
frame- aJFrameto act as parent to this dialog
-
showCouldNotOpenFilepathDialog
public static void showCouldNotOpenFilepathDialog(java.awt.Component frame, java.lang.String filePath)Show a generic error dialog indicating the file could not be opened.- Parameters:
frame- aJFrameto act as parent to this dialogfilePath- aStringrepresenting the path to the file we failed to open
-
showCouldNotOpenFileDialog
public static void showCouldNotOpenFileDialog(java.awt.Component frame, java.lang.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
public static void showCouldNotOpenDialog(java.awt.Component frame, java.lang.String message)Show a dialog informing the user that the file could not be opened.- Parameters:
frame- aJFrameto act as parent to this dialogmessage- aStringgiving the specific reason the file could not be opened
-
-