Class FileDesc
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<FileInfo>
com.motivewave.platform.sdk.common.desc.FileDesc
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.Node
createInputFX
(Settings settings, boolean readOnly) Creates the component that will accept the user input.Gets the list of file extensions to filter in the file chooser dialog.Gets the name of the filter to display when showing the file chooser dialog.setExtensions
(List<String> extensions) Sets the list of file extensions to filter in the file chooser dialog.setFilterName
(String filterName) Sets the name of the filter to display when showing the file chooser dialog.Methods inherited from class com.motivewave.platform.sdk.common.desc.SettingDescriptor
createInput, createTBInput, getDefaultValue, getDescription, getGridWidth, getHelpLink, getIconFactory, getId, getLabel, getName, isAllowUserDefaults, isDisplaySetting, isEnabled, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setDescription, setEnabled, setGridWidth, setHelpLink, setIconFactory, setShowLabel, setSupportsDisable
-
Constructor Details
-
FileDesc
-
FileDesc
-
-
Method Details
-
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
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
Gets the name of the filter to display when showing the file chooser dialog.- Returns:
- filter name
-
setFilterName
Sets the name of the filter to display when showing the file chooser dialog.- Parameters:
filterName
- filter name
-
createInputFX
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 classSettingDescriptor<FileInfo>
- Parameters:
settings
- settings for the studyreadOnly
- true if the component should not accept user input- Returns:
- component that will accept user input.
-
fromJson
- Overrides:
fromJson
in classSettingDescriptor<FileInfo>
-