Class FileDesc


public class FileDesc extends SettingDescriptor<FileInfo>
  • Constructor Details

  • Method Details

    • getExtensions

      public List<String> getExtensions()
      Gets the list of file extensions to filter in the file chooser dialog. For example: *.txt, *.TXT
      Returns:
      file extensions used to filter in the file chooser dialog in the form '*.ext'.
    • setExtensions

      public FileDesc setExtensions(List<String> extensions)
      Sets the list of file extensions to filter in the file chooser dialog. For example: *.txt, *.TXT
      Parameters:
      extensions - list of file extensions in the form '*.ext'
    • getFilterName

      public String getFilterName()
      Gets the name of the filter to display when showing the file chooser dialog.
      Returns:
      filter name
    • setFilterName

      public FileDesc setFilterName(String filterName)
      Sets the name of the filter to display when showing the file chooser dialog.
      Parameters:
      filterName - filter name
    • createInputFX

      public javafx.scene.Node createInputFX(Settings settings, boolean readOnly)
      Description copied from class: SettingDescriptor
      Creates the component that will accept the user input. This is called by the study framework.
      Specified by:
      createInputFX in class SettingDescriptor<FileInfo>
      Parameters:
      settings - settings for the study
      readOnly - true if the component should not accept user input
      Returns:
      component that will accept user input.
    • fromJson

      public Object fromJson(Object json)
      Overrides:
      fromJson in class SettingDescriptor<FileInfo>