Class BarDescriptor
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<BarInfo>
com.motivewave.platform.sdk.common.desc.BarDescriptor
Describes a vertical bar.
-
Constructor Summary
ConstructorsConstructorDescriptionBarDescriptor(String name, String label, Color color, boolean enabled, boolean supportsDisable) Constructor.BarDescriptor(String name, String label, Color color, Integer fixedWidth, boolean enabled, boolean supportsDisable) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.NodecreateControl(SettingsBase settings, boolean readOnly) Creates the component that will accept the user input.getColor()Gets the default color of the bar.Gets the default value for this setting.Gets the fixed width of the bar.booleanIndicates if this setting is used to affect the appearance of the of the study/strategyMethods inherited from class SettingDescriptor
createInput, createInputFX, createTBInput, createTBInput, getDescription, getGridWidth, getHelpLink, getIconFactory, getId, getLabel, getName, getPostLabel, isAllowUserDefaults, 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 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(BarInfo 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
-
BarDescriptor
public BarDescriptor(String name, String label, Color color, boolean enabled, boolean supportsDisable) Constructor.- Parameters:
name- name of this setting (key)label- label displayed to the usercolor- default color of the barenabled- default enabled statesupportsDisable- indicates if the user can disable this setting
-
BarDescriptor
public BarDescriptor(String name, String label, Color color, Integer fixedWidth, boolean enabled, boolean supportsDisable) Constructor.- Parameters:
name- name of this setting (key)label- label displayed to the usercolor- default color of the barfixedWidth- fixed width of the bar (null for dynamic size)enabled- default enabled statesupportsDisable- indicates if the user can disable this setting
-
-
Method Details
-
getDefaultValue
Gets the default value for this setting.- Overrides:
getDefaultValuein classSettingDescriptor<BarInfo>- Returns:
- default value for the setting
-
isDisplaySetting
public boolean isDisplaySetting()Description copied from class:SettingDescriptorIndicates if this setting is used to affect the appearance of the of the study/strategy- Overrides:
isDisplaySettingin classSettingDescriptor<BarInfo>- Returns:
- true if this setting affects the appearance of the study/strategy
-
createControl
Description copied from class:SettingDescriptorCreates the component that will accept the user input. This is called by the study framework.- Overrides:
createControlin classSettingDescriptor<BarInfo>- Parameters:
settings- settings for the studyreadOnly- true if the component should not accept user input- Returns:
- component that will accept user input.
-
getColor
Gets the default color of the bar. -
getFixedWidth
Gets the fixed width of the bar. -
fromJson
- Overrides:
fromJsonin classSettingDescriptor<BarInfo>
-