Class CMSSidebarElementCustom
java.lang.Object
io.goobi.viewer.model.cms.widgets.embed.CMSSidebarElement
io.goobi.viewer.model.cms.widgets.embed.CMSSidebarElementCustom
- All Implemented Interfaces:
Serializable
Wrapper element for custom (user created) sidebar widgets. Linked to an instance of
CustomSidebarWidget providing the data to display- Author:
- Florian Alpers
- See Also:
-
Field Summary
Fields inherited from class io.goobi.viewer.model.cms.widgets.embed.CMSSidebarElement
HASH_MULTIPLIER, WIDGET_TYPE_AUTOMATIC, WIDGET_TYPE_CUSTOM, WIDGET_TYPE_DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionEmpty contructor for the DAO.CMSSidebarElementCustom(CustomSidebarWidget widget, CMSPage owner) Default constructor for aCustomSidebarWidgetproviding the data and an owningCMSPage.CMSSidebarElementCustom(CustomSidebarWidget widget, CMSPageTemplate owner) CMSSidebarElementCustom(CMSSidebarElementCustom orig, CMSPage owner) Cloning constructor with a CMSPage to set as owner. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEdit()getTitle()Gets the title of the underlying widget.Gets theCustomSidebarWidgetproviding the data.voidsetWidget(CustomSidebarWidget widget) Methods inherited from class io.goobi.viewer.model.cms.widgets.embed.CMSSidebarElement
copy, copy, getContentType, getGenerationType, getId, getOrder, getOwnerPage, getOwnerTemplate, setContentType, setGenerationType, setId, setOrder, setOwnerPage, setOwnerTemplate
-
Constructor Details
-
CMSSidebarElementCustom
public CMSSidebarElementCustom()Empty contructor for the DAO. -
CMSSidebarElementCustom
Default constructor for aCustomSidebarWidgetproviding the data and an owningCMSPage.- Parameters:
widget- the custom sidebar widget providing the dataowner- the owning CMS page
-
CMSSidebarElementCustom
-
CMSSidebarElementCustom
Cloning constructor with a CMSPage to set as owner.- Parameters:
orig- original sidebar element to cloneowner- the owning CMS page
-
CMSSidebarElementCustom
-
-
Method Details
-
getWidget
Gets theCustomSidebarWidgetproviding the data.- Returns:
- the
CustomSidebarWidgetbacking this sidebar element
-
setWidget
- Parameters:
widget- the custom sidebar widget to set
-
getTitle
Gets the title of the underlying widget.- Overrides:
getTitlein classCMSSidebarElement- Returns:
- the title of the underlying
CustomSidebarWidgetas aTranslatedText
-
getDescription
- Overrides:
getDescriptionin classCMSSidebarElement
-
canEdit
public boolean canEdit()- Overrides:
canEditin classCMSSidebarElement
-
getAdminBackendUrl
- Overrides:
getAdminBackendUrlin classCMSSidebarElement
-