Class InsightFieldConfiguration
java.lang.Object
com.riadalabs.jira.plugins.insight.services.imports.common.external.insightfield.InsightFieldConfiguration
- All Implemented Interfaces:
Translateble
,Serializable
- Direct Known Subclasses:
InsightFieldCheckboxConfiguration
,InsightFieldPickerConfiguration
,InsightFieldSelectConfiguration
,InsightFieldTextAreaConfiguration
,InsightFieldTextConfiguration
,InsightFieldTextCustomDescriptionConfiguration
@PublicApi
public abstract class InsightFieldConfiguration
extends Object
implements Serializable, Translateble
The main class that needs to implemented in order to create a "Insight Field Configuration" that can be used in order
to render a (A)UI Component on a Page. Each subclass decides which specific
InsightFieldInput
} should be
used. Ex: {link InsightFieldTextConfiguration} uses a InsightFieldTextInput
etc.- Since:
- 5.0
- Author:
- Fredrik Karbing
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetInput()
getKey()
getLabel()
getRole()
getValue()
int
boolean
boolean
void
setDescription
(String description) void
setInput
(InsightFieldInput input) void
void
setMandatory
(boolean isMandatory) void
setMultiValue
(boolean isMultiValue) void
setRole
(InsightFieldRole role) void
void
setWeight
(int weight) toJSON()
void
translate
(io.riada.insight.utils.I18n i18n)
-
Method Details
-
getKey
-
getLabel
-
setLabel
-
getDescription
-
setDescription
-
getInput
-
setInput
-
getRole
-
setRole
-
isMandatory
public boolean isMandatory() -
setMandatory
public void setMandatory(boolean isMandatory) -
isMultiValue
public boolean isMultiValue() -
setMultiValue
public void setMultiValue(boolean isMultiValue) -
getLabelI18nKey
-
getDescriptionI18nKey
-
getWeight
public int getWeight() -
setWeight
public void setWeight(int weight) -
getValue
-
setValue
-
toJSON
-
translate
public void translate(io.riada.insight.utils.I18n i18n) - Specified by:
translate
in interfaceTranslateble
-