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.NodecreateControl(SettingsBase settings, boolean readOnly) Creates an editor for this input and returns it as a JavaFX Node.Gets the default value for this setting.intGets the string.booleanDetermines if this setting is used for display purposes only.booleansetHeight(int height) voidsetNotInMessage(String msg) voidsetNotInValues(List<String> values) voidsetRequired(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:
getDefaultValuein 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:
createControlin 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:
isDisplaySettingin classSettingDescriptor<String>- Returns:
- true if this setting is for display purposes only
-
getString
-
fromJson
- Overrides:
fromJsonin classSettingDescriptor<String>
-