Class InstrDesc
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<InstrInfo>
com.motivewave.platform.sdk.common.desc.InstrDesc
Describes an input for selecting an instrument that is part of the study/strategy.
Please Note: you must declare 'multipleInstrument=true' in the study header in order for data
to be returned at runtime.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.Node
createControl
(SettingsBase settings, boolean readOnly) Creates the component that will accept the user input.boolean
Gets the default attribute for using the chart instrument.boolean
Indicates if the input supports specifying the chart instrument.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
-
InstrDesc
-
InstrDesc
-
-
Method Details
-
createControl
Description copied from class:SettingDescriptor
Creates the component that will accept the user input. This is called by the study framework.- Overrides:
createControl
in classSettingDescriptor<InstrInfo>
- Parameters:
settings
- settings for the studyreadOnly
- true if the component should not accept user input- Returns:
- component that will accept user input.
-
supportsChartInstrument
public boolean supportsChartInstrument()Indicates if the input supports specifying the chart instrument.- Returns:
- true if the input allows the user to specify the chart instrument
-
isChartInstrumentDefault
public boolean isChartInstrumentDefault()Gets the default attribute for using the chart instrument.- Returns:
- true if the chart instrument should be used by default
-
fromJson
- Overrides:
fromJson
in classSettingDescriptor<InstrInfo>
-