Class FileDescriptor
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<File>
com.motivewave.platform.sdk.common.desc.FileDescriptor
Describes a File Input.
-
Constructor Summary
ConstructorsConstructorDescriptionFileDescriptor(String name, String label, File file) ConstructorFileDescriptor(String name, String label, File file, boolean enabled, boolean supportsDisable) Constructor -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.NodecreateControl(SettingsBase settings, boolean readOnly) Creates an editor for this input and returns it as a JavaFX Node.Gets the default value for this setting.Gets the list of file extensions to filter in the file chooser dialog.getFile()Gets the File.Gets the name of the filter to display when showing the file chooser dialog.booleanDetermines if this setting is used for display purposes only.voidsetExtensions(List<String> extensions) Sets the list of file extensions to filter in the file chooser dialog.voidsetFilterName(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, createInputFX, createTBInput, createTBInput, getDescription, getGridWidth, getHelpLink, getIconFactory, getId, getLabel, getName, getPostLabel, isAllowUserDefaults, isEnabled, isReadOnly, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setDescription, setEnabled, setGridWidth, setHelpLink, setIconFactory, setPostLabel, setReadOnly, setShowLabel, setSupportsDisable
-
Constructor Details
-
FileDescriptor
-
FileDescriptor
public FileDescriptor(String name, String label, File file, boolean enabled, boolean supportsDisable) Constructor- Parameters:
name- - Name of this settinglabel- - Label displayed to the userfile- - default file valueenabled- true if this file input is enabledsupportsDisable- true if this file input can be disabled
-
-
Method Details
-
getDefaultValue
Gets the default value for this setting.- Overrides:
getDefaultValuein classSettingDescriptor<File>- Returns:
- default value for the setting
-
createControl
Creates an editor for this input and returns it as a JavaFX Node.- Overrides:
createControlin classSettingDescriptor<File>- Parameters:
settings- settings for the studyreadOnly- true if the component should not accept user input- Returns:
- component that will accept user input.
-
isDisplaySetting
public boolean isDisplaySetting()Determines if this setting is used for display purposes only.- Overrides:
isDisplaySettingin classSettingDescriptor<File>- Returns:
- true if this setting is for display purposes only
-
getFile
-
setExtensions
-
getExtensions
-
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
-
fromJson
- Overrides:
fromJsonin classSettingDescriptor<File>
-