Class DiscreteDesc
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<StringInfo>
com.motivewave.platform.sdk.common.desc.DiscreteDesc
Describes a discrete set of values the user can choose from.
-
Constructor Summary
ConstructorsConstructorDescriptionDiscreteDesc(String id, String label, StringInfo defaultValue, List<NVP> values) ConstructorDiscreteDesc(String id, String label, StringInfo defaultValue, List<NVP> values, boolean supportsDisable) ConstructorConstructor -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.NodecreateControl(SettingsBase settings, boolean readOnly) Creates the component that will accept the user input.Gets the list of valid choices.Methods inherited from class com.motivewave.platform.sdk.common.desc.SettingDescriptor
createInput, createInputFX, createTBInput, createTBInput, getDefaultValue, getDescription, getGridWidth, getHelpLink, getIconFactory, getId, getLabel, getName, getPostLabel, isAllowUserDefaults, isDisplaySetting, isEnabled, isReadOnly, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setDescription, setEnabled, setGridWidth, setHelpLink, setIconFactory, setPostLabel, setReadOnly, setShowLabel, setSupportsDisable
-
Constructor Details
-
DiscreteDesc
-
DiscreteDesc
Constructor- Parameters:
id- id 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)
-
DiscreteDesc
public DiscreteDesc(String id, String label, StringInfo defaultValue, List<NVP> values, boolean supportsDisable) Constructor- Parameters:
id- id 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)supportsDisable- true if the user can disable this setting
-
-
Method Details
-
getValues
-
createControl
Description copied from class:SettingDescriptorCreates the component that will accept the user input. This is called by the study framework.- Overrides:
createControlin classSettingDescriptor<StringInfo>- Parameters:
settings- settings for the studyreadOnly- true if the component should not accept user input- Returns:
- component that will accept user input.
-
fromJson
- Overrides:
fromJsonin classSettingDescriptor<StringInfo>
-