Class TifDescriptor
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<Enums.TIF>
com.motivewave.platform.sdk.common.desc.TifDescriptor
Describes a Time In Force order attribute for a strategy.
-
Constructor Summary
ConstructorsConstructorDescriptionTifDescriptor(String name, String label, Enums.TIF defaultValue) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.NodecreateControl(SettingsBase settings, boolean readOnly) Creates the component that will accept the user input.Gets the default value for this setting.Methods inherited from class SettingDescriptor
createInput, createInputFX, createTBInput, createTBInput, getDescription, getGridWidth, getHelpLink, getIconFactory, getId, getLabel, getName, getPostLabel, isAllowUserDefaults, isDisplaySetting, isEnabled, isReadOnly, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setDescription, setEnabled, setGridWidth, setHelpLink, setIconFactory, setPostLabel, setReadOnly, setShowLabel, setSupportsDisableModifier and TypeMethodDescriptioncreateInput(Settings settings, boolean readOnly) Deprecated.javafx.scene.NodecreateInputFX(Settings settings, boolean readOnly) Deprecated.final javafx.scene.NodecreateTBInput(Settings settings) Deprecated.javafx.scene.NodecreateTBInput(SettingsBase settings) Creates a version of the input that can be displayed in a tool bar.intGets the number of columns occupied by the input component.Gets the icon factory for associating an icon with the input in the tool bar/quick editorgetId()Gets the id of this setting.getLabel()Gets the label for this setting (displayed to the user).getName()Deprecated.use getId instead.booleanIndicates if user "Save As Defaults" operations apply to this setting.booleanIndicates if this setting is used to affect the appearance of the of the study/strategybooleanIndicates if the setting is enabled.booleanbooleanIf true, the label for this setting will be displayed to the user.booleanIf true, this setting can be disabled by the user.voidsetAllowUserDefaults(boolean allowUserDefaults) Sets the ability of the user to override defaults for this settingvoidsetDefaultValue(Enums.TIF value) Sets the default value for this setting.setDescription(String description) protected voidsetEnabled(boolean b) Sets the enabled attribute.voidsetGridWidth(int width) Sets the number of columns occupied by the input component.setHelpLink(String helpLink) setIconFactory(IconFactory fact) Sets the icon factory for associating an icon with the input in the tool barsetPostLabel(String lbl) setReadOnly(boolean b) voidsetShowLabel(boolean b) Sets the show label attribute for the setting.voidsetSupportsDisable(boolean b) If true, this setting can be disabled by the user.
-
Constructor Details
-
TifDescriptor
-
-
Method Details
-
getDefaultValue
Gets the default value for this setting.- Overrides:
getDefaultValuein classSettingDescriptor<Enums.TIF>- Returns:
- default value for the setting
-
createControl
Description copied from class:SettingDescriptorCreates the component that will accept the user input. This is called by the study framework.- Overrides:
createControlin classSettingDescriptor<Enums.TIF>- 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<Enums.TIF>
-