Class SnapFileChooser

    • Constructor Detail

      • SnapFileChooser

        public SnapFileChooser()
      • SnapFileChooser

        public SnapFileChooser​(File currentDirectory)
    • Method Detail

      • approveSelection

        public void approveSelection()
        Called by the UI when the user hits the Approve button (labeled "Open" or "Save", by default). This can also be called by the programmer.
        Overrides:
        approveSelection in class JFileChooser
      • getCurrentFilename

        public String getCurrentFilename()
        Returns:
        The current filename, or null.
      • setCurrentFilename

        public void setCurrentFilename​(String currentFilename)
        Sets the current filename.
        Parameters:
        currentFilename - The current filename, or null.
      • getSnapFileFilter

        public SnapFileFilter getSnapFileFilter()
        Returns the currently selected SNAP file filter.
        Returns:
        the current SNAP file filter, or null
      • getDefaultExtension

        public String getDefaultExtension()
        Returns:
        The current extension or null if it is unknown.
      • getWindow

        protected Window getWindow()
        Utility method which returns this file chooser's parent window.
        Returns:
        the parent window or null