Class MAMethodDescriptor
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<Enums.MAMethod>
com.motivewave.platform.sdk.common.desc.MAMethodDescriptor
Describes a moving average calculation method for the study/strategy.
-
Constructor Summary
ConstructorDescriptionMAMethodDescriptor
(String name, String label, Enums.MAMethod defaultValue) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.Node
createInputFX
(Settings settings, boolean readOnly) Creates the component that will accept the user input.Gets the default value for this setting.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
-
MAMethodDescriptor
Constructor.- Parameters:
name
- name of this setting (key)label
- label displayed to the userdefaultValue
- default moving average method
-
-
Method Details
-
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<Enums.MAMethod>
- Parameters:
settings
- settings for the studyreadOnly
- true if the component should not accept user input- Returns:
- component that will accept user input.
-
getDefaultValue
Gets the default value for this setting.- Overrides:
getDefaultValue
in classSettingDescriptor<Enums.MAMethod>
- Returns:
- default value for the setting
-
fromJson
- Overrides:
fromJson
in classSettingDescriptor<Enums.MAMethod>
-