Class AbstractInfoboxType
java.lang.Object
ch.tocco.nice2.infobox.impl.infoboxconfiguration.infoboxtypes.AbstractInfoboxType
- All Implemented Interfaces:
InfoboxType
- Direct Known Subclasses:
FavoriteInfoboxType,FreemarkerInfoboxType,LastUsedInfoboxType,SearchfilterInfoboxType,SearchfiltersInfoboxType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Contextprotected final DefaultDisplayServiceprotected final EntityDefaultValueServiceprotected final L10N -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractInfoboxType(Context context, DefaultDisplayService defaultDisplayService, EntityDefaultValueService entityDefaultValueService, L10N l10N) -
Method Summary
Modifier and TypeMethodDescriptionprotected EntitygetOrCreateContent(Entity infobox) loadFormValues(InitialFormValueResponseBean formBean, Entity infobox) protected List<InitialFormValueResponseBean.SelectOption> loadRelationOptions(Entity infobox, String sourceRelation) protected abstract InitialFormValueResponseBeanloadSettingsFormValues(InitialFormValueResponseBean formBean, Entity infobox) protected voidsetRelationValues(Entity source, Entity target, String relation) protected voidsetRelationValues(Entity source, String sourceRelation, Entity target, String targetRelation) protected abstract voidupdateContent(Entity infobox, Entity sourceContent) voidupdateInfobox(Entity infobox, Entity content) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.tocco.nice2.infobox.api.InfoboxType
getConfigurationEntityName, getConfigurationRelation, getSettingsEntityName, getType, handleLogicCopy
-
Field Details
-
context
-
defaultDisplayService
-
entityDefaultValueService
-
l10N
-
-
Constructor Details
-
AbstractInfoboxType
protected AbstractInfoboxType(Context context, DefaultDisplayService defaultDisplayService, EntityDefaultValueService entityDefaultValueService, L10N l10N)
-
-
Method Details
-
loadFormValues
public InitialFormValueResponseBean loadFormValues(InitialFormValueResponseBean formBean, Entity infobox) - Specified by:
loadFormValuesin interfaceInfoboxType
-
loadSettingsFormValues
protected abstract InitialFormValueResponseBean loadSettingsFormValues(InitialFormValueResponseBean formBean, Entity infobox) -
updateInfobox
- Specified by:
updateInfoboxin interfaceInfoboxType
-
updateContent
-
loadRelationOptions
protected List<InitialFormValueResponseBean.SelectOption> loadRelationOptions(Entity infobox, String sourceRelation) -
getOrCreateContent
-
setRelationValues
-
setRelationValues
-