Class DisplayField
java.lang.Object
com.caplin.motif.config.definitions.common.DisplayField
- All Implemented Interfaces:
DisplayFieldsItem
@Generated("org.openapitools.codegen.languages.SpringCodegen")
public class DisplayField
extends Object
implements DisplayFieldsItem
DisplayField
-
Constructor Summary
ConstructorDescriptionDisplayField
(String label, String template, String displayFieldType) Constructor with only required parameters -
Method Summary
Modifier and TypeMethodDescriptionaddTagsItem
(String tagsItem) arguments
(Map<String, DisplayFieldArgument> arguments) displayFieldType
(String displayFieldType) boolean
Arguments to be applied to the template.Boolean flag, allows the value to be copied via the copy button component.@NotNull String
Get displayFieldType@NotNull String
getLabel()
A label for a display field.getTags()
A list of tags.@NotNull String
Value template, can consist of multiple tokens, for which value and formatting options can be provided with display-field arguments.int
hashCode()
putArgumentsItem
(String key, DisplayFieldArgument argumentsItem) void
setArguments
(Map<String, DisplayFieldArgument> arguments) void
setCanCopy
(Boolean canCopy) void
setDisplayFieldType
(String displayFieldType) void
void
void
setTemplate
(String template) toString()
-
Constructor Details
-
DisplayField
public DisplayField() -
DisplayField
Constructor with only required parameters
-
-
Method Details
-
label
-
getLabel
A label for a display field. Can be either an i18n token, or a plain-text value.- Returns:
- label
-
setLabel
-
template
-
getTemplate
Value template, can consist of multiple tokens, for which value and formatting options can be provided with display-field arguments. Example template: {{settlementDate}} ({{tenor}})- Returns:
- template
-
setTemplate
-
canCopy
-
getCanCopy
Boolean flag, allows the value to be copied via the copy button component.- Returns:
- canCopy
-
setCanCopy
-
arguments
-
putArgumentsItem
-
getArguments
Arguments to be applied to the template. Keyed by replacement token without curly braces.- Returns:
- arguments
-
setArguments
-
displayFieldType
-
getDisplayFieldType
Get displayFieldType- Specified by:
getDisplayFieldType
in interfaceDisplayFieldsItem
- Returns:
- displayFieldType
-
setDisplayFieldType
-
tags
-
addTagsItem
-
getTags
A list of tags. Tags provide hints towards the field's purpose to the frontend.- Returns:
- tags
-
setTags
-
equals
-
hashCode
public int hashCode() -
toString
-