Class AudioFileChooser

  • All Implemented Interfaces:
    adams.gui.chooser.FileChooser, ImageObserver, MenuContainer, Serializable, Accessible

    public class AudioFileChooser
    extends adams.gui.chooser.AbstractExtensionFileFilterFileChooser<adams.gui.core.ExtensionFileFilter>
    A specialized JFileChooser loading/saving audio files.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Filters

        protected static List<adams.gui.core.ExtensionFileFilter> m_Filters
        the list of audio filters.
    • Constructor Detail

      • AudioFileChooser

        public AudioFileChooser()
        Constructs a FileChooser pointing to the user's default directory.
      • AudioFileChooser

        public AudioFileChooser​(File currentDirectory)
        Constructs a FileChooser using the given File as the path.
        Parameters:
        currentDirectory - the path to start in
      • AudioFileChooser

        public AudioFileChooser​(String currentDirectory)
        Constructs a FileChooser using the given path.
        Parameters:
        currentDirectory - the path to start in
    • Method Detail

      • getFiltersInitialized

        protected boolean getFiltersInitialized()
        Returns whether the filters have already been initialized.
        Specified by:
        getFiltersInitialized in class adams.gui.chooser.AbstractExtensionFileFilterFileChooser<adams.gui.core.ExtensionFileFilter>
        Returns:
        true if the filters have been initialized
      • doInitializeFilters

        protected void doInitializeFilters()
        Performs the actual initialization of the filters.
        Specified by:
        doInitializeFilters in class adams.gui.chooser.AbstractExtensionFileFilterFileChooser<adams.gui.core.ExtensionFileFilter>
      • getOpenFileFilters

        protected List<adams.gui.core.ExtensionFileFilter> getOpenFileFilters()
        Returns the file filters for opening files.
        Specified by:
        getOpenFileFilters in class adams.gui.chooser.AbstractExtensionFileFilterFileChooser<adams.gui.core.ExtensionFileFilter>
        Returns:
        the file filters
      • getSaveFileFilters

        protected List<adams.gui.core.ExtensionFileFilter> getSaveFileFilters()
        Returns the file filters for writing files.
        Specified by:
        getSaveFileFilters in class adams.gui.chooser.AbstractExtensionFileFilterFileChooser<adams.gui.core.ExtensionFileFilter>
        Returns:
        the file filters