Class DiscreteDescriptor
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<String>
com.motivewave.platform.sdk.common.desc.DiscreteDescriptor
Describes a discrete set of values the user can choose from.
-
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 NVP associated to the given value.Gets the default value for this setting.Gets the list of valid choices.Methods inherited from class com.motivewave.platform.sdk.common.desc.SettingDescriptor
createInput, createTBInput, getDescription, getGridWidth, getHelpLink, getIconFactory, getId, getLabel, getName, isAllowUserDefaults, isDisplaySetting, isEnabled, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setDescription, setEnabled, setGridWidth, setHelpLink, setIconFactory, setShowLabel, setSupportsDisable
-
Constructor Details
-
DiscreteDescriptor
Constructor- Parameters:
name
- name of this setting (key)label
- label displayed to the userdefaultValue
- default value for the settingvalues
- set of valid choices (as Name Value Pairs ie NVP)
-
-
Method Details
-
getDefaultValue
Gets the default value for this setting.- Overrides:
getDefaultValue
in classSettingDescriptor<String>
- Returns:
- default value for the setting
-
getValues
Gets the list of valid choices. -
findNVP
Gets the NVP associated to the given value. -
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<String>
- 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<String>
-