Class StringDescriptor
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<String>
com.motivewave.platform.sdk.common.desc.StringDescriptor
Describes a String input.
-
Constructor Summary
ConstructorDescriptionStringDescriptor
(String name, String label, String str) ConstructorStringDescriptor
(String name, String label, String str, boolean enabled, boolean supportsDisable) ConstructorStringDescriptor
(String name, String label, String str, int width) ConstructorStringDescriptor
(String name, String label, String str, int width, boolean enabled, boolean supportsDisable) Constructor -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.Node
createInputFX
(Settings settings, boolean readOnly) Creates an editor for this input and returns it as a JavaFX Node.Gets the default value for this setting.Gets the string.boolean
Determines if this setting is used for display purposes only.Methods inherited from class com.motivewave.platform.sdk.common.desc.SettingDescriptor
createInput, createTBInput, getDescription, getGridWidth, getHelpLink, getIconFactory, getId, getLabel, getName, isAllowUserDefaults, isEnabled, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setDescription, setEnabled, setGridWidth, setHelpLink, setIconFactory, setShowLabel, setSupportsDisable
-
Constructor Details
-
StringDescriptor
Constructor- Parameters:
name
- name of this settinglabel
- label displayed to the userstr
- default string value
-
StringDescriptor
Constructor- Parameters:
name
- name of this settinglabel
- label displayed to the userstr
- default string valuewidth
- text field width
-
StringDescriptor
public StringDescriptor(String name, String label, String str, boolean enabled, boolean supportsDisable) Constructor- Parameters:
name
- - Name of this settinglabel
- - Label displayed to the userstr
- default string valueenabled
- true if this font is enabledsupportsDisable
- true if this font can be disabled
-
StringDescriptor
public StringDescriptor(String name, String label, String str, int width, boolean enabled, boolean supportsDisable) Constructor- Parameters:
name
- - Name of this settinglabel
- - Label displayed to the userstr
- default string valuewidth
- text field widthenabled
- true if this font is enabledsupportsDisable
- true if this font can be disabled
-
-
Method Details
-
getDefaultValue
Gets the default value for this setting.- Overrides:
getDefaultValue
in classSettingDescriptor<String>
- Returns:
- default value for the setting
-
createInputFX
Creates an editor for this input and returns it as a JavaFX Node.- Specified by:
createInputFX
in classSettingDescriptor<String>
- Parameters:
settings
- settings for the studyreadOnly
- true if the component should not accept user input- Returns:
- component that will accept user input.
-
isDisplaySetting
public boolean isDisplaySetting()Determines if this setting is used for display purposes only.- Overrides:
isDisplaySetting
in classSettingDescriptor<String>
- Returns:
- true if this setting is for display purposes only
-
getString
Gets the string.- Returns:
- string value
-
fromJson
- Overrides:
fromJson
in classSettingDescriptor<String>
-