Class FileDialogFactory

java.lang.Object
net.adoptopenjdk.icedteaweb.client.parts.dialogs.FileDialogFactory

public final class FileDialogFactory extends Object
This factory is used to create popup dialogs for file-related user interaction.
  • Constructor Details

    • FileDialogFactory

      public FileDialogFactory()
  • Method Details

    • showReadOnlyDialog

      public static void showReadOnlyDialog(Component frame)
      Show a dialog informing the user that the file is currently read-only.
      Parameters:
      frame - a JFrame to act as parent to this dialog
    • showCouldNotOpenFilepathDialog

      public static void showCouldNotOpenFilepathDialog(Component frame, String filePath)
      Show a generic error dialog indicating the file could not be opened.
      Parameters:
      frame - a JFrame to act as parent to this dialog
      filePath - a String representing the path to the file we failed to open
    • 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 - a JFrame to act as parent to this dialog
      filePath - a String representing the path to the file we failed to open
      reason - a FileUtils.OpenFileResult specifying more precisely why we failed to open the file
    • showCouldNotOpenDialog

      public static void showCouldNotOpenDialog(Component frame, String message)
      Show a dialog informing the user that the file could not be opened.
      Parameters:
      frame - a JFrame to act as parent to this dialog
      message - a String giving the specific reason the file could not be opened