Class BarSizeDesc

java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<BarSizeInfo>
com.motivewave.platform.sdk.common.desc.BarSizeDesc

public class BarSizeDesc extends SettingDescriptor<BarSizeInfo>
Describes a bar size that is part of the study/strategy.
  • Constructor Details

    • BarSizeDesc

      public BarSizeDesc(String name, String label, BarSizeInfo defaultValue)
      Constructor.
      Parameters:
      name - name of this setting (key)
      label - label displayed to the user
      defaultValue - default bar size
    • BarSizeDesc

      public BarSizeDesc(String name, String label, BarSizeInfo defaultValue, boolean supportsDisable)
  • Method Details

    • createInputFX

      public javafx.scene.Node createInputFX(Settings settings, boolean readOnly)
      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 class SettingDescriptor<BarSizeInfo>
      Parameters:
      settings - settings for the study
      readOnly - true if the component should not accept user input
      Returns:
      component that will accept user input.
    • fromJson

      public Object fromJson(Object json)
      Overrides:
      fromJson in class SettingDescriptor<BarSizeInfo>