Class BooleanDescriptor
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<Boolean>
com.motivewave.platform.sdk.common.desc.BooleanDescriptor
Describes a boolean setting
-
Constructor Summary
ConstructorDescriptionBooleanDescriptor
(String name, String label, Boolean defaultValue) ConstructorBooleanDescriptor
(String name, String label, Boolean defaultValue, boolean showLabel) ConstructorBooleanDescriptor
(String name, String label, Boolean defaultValue, boolean showLabel, int gridWidth) 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
-
BooleanDescriptor
Constructor- Parameters:
name
- name of this setting (key)label
- label displayed to the userdefaultValue
- default boolean value
-
BooleanDescriptor
Constructor- Parameters:
name
- name of this setting (key)label
- label displayed to the userdefaultValue
- default boolean valueshowLabel
- indicates if the label should be displayed
-
BooleanDescriptor
public BooleanDescriptor(String name, String label, Boolean defaultValue, boolean showLabel, int gridWidth) Constructor- Parameters:
name
- name of this setting (key)label
- label displayed to the userdefaultValue
- default boolean valueshowLabel
- indicates if the label should be displayedgridWidth
- overrides the default grid width of 1
-
-
Method Details
-
getDefaultValue
Gets the default value for this setting.- Overrides:
getDefaultValue
in classSettingDescriptor<Boolean>
- Returns:
- default value for the setting
-
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<Boolean>
- Parameters:
settings
- settings for the studyreadOnly
- true if the component should not accept user input- Returns:
- component that will accept user input.
-
fromJson
- Overrides:
fromJson
in classSettingDescriptor<Boolean>
-