Class JDialogUnknownIO

All Implemented Interfaces:
DialogDefaultsInterface, ActionListener, FocusListener, ItemListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class JDialogUnknownIO extends JDialogBase
Simple dialog to indicate type of image when the program doesn't recognize the name.
Version:
1.0 Feb 4, 1999
Author:
Matthew McAuliffe, Ph.D.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • typeDescriptions

      private static String[] typeDescriptions
      DOCUMENT ME!
    • typeDefaultExtensions

      private static String[] typeDefaultExtensions
      DOCUMENT ME!
    • typeInts

      private static int[] typeInts
      DOCUMENT ME!
    • imageType

      private int imageType
      DOCUMENT ME!
    • list

      private JList list
      DOCUMENT ME!
    • suffix

      private String suffix
      DOCUMENT ME!
  • Constructor Details

    • JDialogUnknownIO

      public JDialogUnknownIO(Frame theParentFrame, String title)
      Creates and displays dialog.
      Parameters:
      theParentFrame - Parent frame.
      title - Title of dialog frame.
  • Method Details

    • getTypeNames

      public static String[] getTypeNames()
      Accessor that returns the static list of type names.
      Returns:
      Array of type names for IO.
    • getTypeInts

      public static int[] getTypeInts()
      Accessor that returns the static list of type integers.
      Returns:
      Array of type integers for IO.
    • getTypeDefaultExtensions

      public static String[] getTypeDefaultExtensions()
      Accessor that returns the static list of type extensions (just the default extension).
      Returns:
      Array of type extensions for IO.
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Closes dialog box when the OK button is pressed and sets the image type and suffix.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - Event that triggers this function.
    • getFileType

      public int getFileType()
      Accessor that returns the image type.
      Returns:
      The image type.
    • getSuffix

      public String getSuffix()
      Accessor that returns the suffix.
      Returns:
      The suffix.