public class OptionType extends MorpheusModel
| Modifier and Type | Class and Description |
|---|---|
static class |
OptionType.InputType |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
code |
protected java.lang.String |
defaultValue |
protected java.lang.String |
dependsOn |
protected java.lang.Integer |
displayOrder |
protected java.lang.String |
fieldContext |
protected java.lang.String |
fieldLabel |
protected java.lang.String |
fieldName |
protected java.lang.String |
helpText |
protected OptionType.InputType |
inputType |
protected java.lang.String |
name |
protected java.lang.String |
optionSource |
protected java.lang.String |
placeHolderText |
protected java.lang.Boolean |
required |
config, id| Constructor and Description |
|---|
OptionType() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCode()
Gets the Unique code representation of the option type.
|
java.lang.String |
getDefaultValue()
Returns a String representation of the default value for the current Input.
|
java.lang.String |
getDependsOn()
Gets the code of an option type that this option type depends on.
|
java.lang.Integer |
getDisplayOrder()
Gets the display order position of the following Option Type.
|
java.lang.String |
getFieldContext()
Gets the field context which is the primary object the field is being saved onto.
|
java.lang.String |
getFieldLabel()
Gets the field label of the current Option Type.
|
java.lang.String |
getFieldName()
Gets the field name of the current option type.
|
java.lang.String |
getHelpText()
Gets the help text pertaining to an input.
|
OptionType.InputType |
getInputType()
Gets the type of Input this option type represents.
|
java.lang.String |
getOptionSource()
Gets the option source api method endpoint to hit when using the
OptionType.InputType.SELECT option. |
java.lang.String |
getPlaceHolderText()
Gets an inputs placeholder text for helpful display when awaiting input on a field.
|
java.lang.Boolean |
getRequired()
Gets the required flag off of the option type.
|
void |
setCode(java.lang.String code)
Sets the Unique code representation of the option type.
|
void |
setDefaultValue(java.lang.String defaultValue)
Sets a String representation of the default value for the current Input.
|
void |
setDependsOn(java.lang.String dependsOn)
Sets the code of an option type that this option type depends on.
|
void |
setDisplayOrder(java.lang.Integer displayOrder)
Sets the display order position of the following Option Type.
|
void |
setFieldContext(java.lang.String fieldContext)
Sets the field context which is the primary object the field is being saved onto.
|
void |
setFieldLabel(java.lang.String fieldLabel)
Sets the field label of the current Option Type.
|
void |
setFieldName(java.lang.String fieldName)
Sets the field name of the current option type.
|
void |
setHelpText(java.lang.String helpText)
Gets the help text pertaining to an input.
|
void |
setInputType(OptionType.InputType inputType)
Sets the type of Input this option type represents.
|
void |
setOptionSource(java.lang.String optionSource)
Sets the option source api method endpoint to hit when using the
OptionType.InputType.SELECT option. |
void |
setPlaceHolderText(java.lang.String placeHolderText)
Sets an inputs placeholder text for helpful display when awaiting input on a field.
|
void |
setRequired(java.lang.Boolean required)
Sets the required flag off of the option type.
|
getConfig, getConfigMap, getConfigProperty, getDirtyProperties, getDirtyPropertyValues, getId, getProperties, markClean, markDirty, setConfig, setConfigMap, setIdprotected java.lang.String name
protected java.lang.String code
protected java.lang.String fieldLabel
protected java.lang.String fieldName
protected java.lang.String fieldContext
protected OptionType.InputType inputType
protected java.lang.Integer displayOrder
protected java.lang.String placeHolderText
protected java.lang.String defaultValue
protected java.lang.Boolean required
protected java.lang.String helpText
protected java.lang.String optionSource
protected java.lang.String dependsOn
public java.lang.String getCode()
public void setCode(java.lang.String code)
code - unique String code identifier for this particular Option Typepublic java.lang.String getFieldLabel()
public void setFieldLabel(java.lang.String fieldLabel)
fieldLabel - Human readable Field Labelpublic java.lang.String getFieldName()
public void setFieldName(java.lang.String fieldName)
fieldName - the field name of the property being savedpublic java.lang.String getFieldContext()
public void setFieldContext(java.lang.String fieldContext)
fieldContext - the field context to be used for determining where the value is savedpublic OptionType.InputType getInputType()
getOptionSource().public void setInputType(OptionType.InputType inputType)
getOptionSource().inputType - the type of input this option type correlates to.public java.lang.Integer getDisplayOrder()
public void setDisplayOrder(java.lang.Integer displayOrder)
displayOrder - the Numerical display order (typically starting at 0) of the input.public java.lang.String getPlaceHolderText()
public void setPlaceHolderText(java.lang.String placeHolderText)
placeHolderText - the place holder input textpublic java.lang.String getDefaultValue()
public void setDefaultValue(java.lang.String defaultValue)
defaultValue - the default value of the following input optionpublic java.lang.Boolean getRequired()
public void setRequired(java.lang.Boolean required)
required - the required flag to determine if an input requires a value or notpublic java.lang.String getHelpText()
public void setHelpText(java.lang.String helpText)
helpText - the descriptive help block of text for an inputpublic java.lang.String getOptionSource()
OptionType.InputType.SELECT option. This allows a remote
data source query to be queried for loading dynamic data. It also can take a POST request with the values of previously entered
inputs to use as a way to filter the available options.public void setOptionSource(java.lang.String optionSource)
OptionType.InputType.SELECT option. This allows a remote
data source query to be queried for loading dynamic data. It also can take a POST request with the values of previously entered
inputs to use as a way to filter the available options.optionSource - option source api method for loading dynamic optionspublic java.lang.String getDependsOn()
public void setDependsOn(java.lang.String dependsOn)
dependsOn - the code of the parent option type