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
ConstructorsConstructorDescriptionStringDescriptor
(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
createControl
(SettingsBase settings, boolean readOnly) Creates an editor for this input and returns it as a JavaFX Node.Gets the default value for this setting.int
Gets the string.boolean
Determines if this setting is used for display purposes only.boolean
setHeight
(int height) void
setNotInMessage
(String msg) void
setNotInValues
(List<String> values) void
setRequired
(boolean b) Methods inherited from class com.motivewave.platform.sdk.common.desc.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, setSupportsDisable
-
Constructor Details
-
StringDescriptor
-
StringDescriptor
-
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
-
getHeight
public int getHeight() -
setHeight
-
createControl
Creates an editor for this input and returns it as a JavaFX Node.- Overrides:
createControl
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.
-
isRequired
public boolean isRequired() -
setRequired
public void setRequired(boolean b) -
getNotInValues
-
setNotInValues
-
getNotInMessage
-
setNotInMessage
-
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
-
fromJson
- Overrides:
fromJson
in classSettingDescriptor<String>
-