Class FolderInputPane


public class FolderInputPane extends DAQSettingsPane<FolderInputParameters>
JavaFX pane for the folder input of the sound acquisition.
Author:
Jamie Macaulay
  • Field Details Link icon

    • fileChooser Link icon

      protected final javafx.stage.FileChooser fileChooser
      File chooser dialog.
  • Constructor Details Link icon

  • Method Details Link icon

    • selectFolder Link icon

      protected void selectFolder(boolean folderDir)
      Open a dialog to select either a folder or a list of files.
      Parameters:
      folderDir - - true to use directory chooser, false to use multiple file chooser.
    • configureFileChooser Link icon

      protected static void configureFileChooser(javafx.stage.FileChooser fileChooser)
      Set params for the file chooser.
      Parameters:
      fileChooser - - filechooser to configure.
    • setNewFile Link icon

      public void setNewFile(String newFile, FolderInputParameters currParams)
      Called when user selects a file or folder in the dialog.
      Parameters:
      newFile - - the new file or folder.
    • getParams Link icon

      public FolderInputParameters getParams(FolderInputParameters folderInputParameters)
      Description copied from class: SettingsPane
      Get settings from the pane.
      Specified by:
      getParams in class SettingsPane<FolderInputParameters>
      Returns:
      settings class
    • setParams Link icon

      public void setParams(FolderInputParameters currParams)
      Description copied from class: SettingsPane
      Called whenever the pane is first shown/open to set pane to show current settings.
      Specified by:
      setParams in class SettingsPane<FolderInputParameters>
      Parameters:
      currParams - - current settings class.
    • getName Link icon

      public String getName()
      Description copied from class: SettingsPane
      Get the name of the pane.
      Specified by:
      getName in class SettingsPane<FolderInputParameters>
      Returns:
      name of the pane
    • getContentNode Link icon

      public javafx.scene.Node getContentNode()
      Description copied from class: SettingsPane
      Get node for GUI change of settings.
      Specified by:
      getContentNode in class SettingsPane<FolderInputParameters>
    • paneInitialized Link icon

      public void paneInitialized()
      Description copied from class: SettingsPane
      Called when settings pane is first initialised. This can be used if for example, a the size of a pane is needed for a param. (Sizes are only initialised when Nodes are shown);
      Specified by:
      paneInitialized in class SettingsPane<FolderInputParameters>
    • newFileList Link icon

      public void newFileList(FileListData<WavFileType> fileListData)
      Called once the wav worker thread has finished making the audio file list.
      Parameters:
      fileListData - - the list of new audio files.
    • setFileOptionPane Link icon

      public void setFileOptionPane(javafx.collections.ObservableList<WavFileType> fileList)
      Set bespoke options for certain file types.
    • setFileWorker Link icon

      public void setFileWorker(PamWorker<FileListData<WavFileType>> worker)
      Called whenever a new file worker is initialised to search a folder for wav files.
      Parameters:
      worker - - the new file worker being used.
    • setParams Link icon

      public void setParams()
      these are the functions called by the aquisition main settings pane
      Specified by:
      setParams in class DAQSettingsPane<FolderInputParameters>
    • getParams Link icon

      public boolean getParams()
      Description copied from class: DAQSettingsPane
      Called by the acquisition pane whenever parameters are to be got.
      Specified by:
      getParams in class DAQSettingsPane<FolderInputParameters>