public class MiniCartComponentModel extends SimpleCMSComponentModel
It represents mini cart component that can be configured to show some information about cart content.
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_TYPECODE
Generated model type code constant.
|
static java.lang.String |
LIGHTBOXBANNERCOMPONENT
Generated constant - Attribute key of
MiniCartComponent.lightboxBannerComponent attribute defined at extension acceleratorcms. |
static java.lang.String |
SHOWNPRODUCTCOUNT
Generated constant - Attribute key of
MiniCartComponent.shownProductCount attribute defined at extension acceleratorcms. |
static java.lang.String |
TITLE
Generated constant - Attribute key of
MiniCartComponent.title attribute defined at extension acceleratorcms. |
static java.lang.String |
TOTALDISPLAY
Generated constant - Attribute key of
MiniCartComponent.totalDisplay attribute defined at extension acceleratorcms. |
_ELEMENTSFORCONTAINER, CONTAINERS_ELEMENTSFORSLOT, ACTIONS, CONTAINER, ONLYONERESTRICTIONMUSTAPPLY, RESTRICTED, RESTRICTIONS, SLOTS, TYPE, TYPECODE, VISIBLECATALOGVERSION, NAME, UID_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
MiniCartComponentModel()
Generated constructor - Default constructor for generic creation.
|
MiniCartComponentModel(CatalogVersionModel _catalogVersion,
ItemModel _owner,
java.lang.String _uid)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
MiniCartComponentModel(CatalogVersionModel _catalogVersion,
java.lang.String _uid)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
MiniCartComponentModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
| Modifier and Type | Method and Description |
|---|---|
SimpleBannerComponentModel |
getLightboxBannerComponent()
Generated method - Getter of the
MiniCartComponent.lightboxBannerComponent attribute defined at extension acceleratorcms. |
int |
getShownProductCount()
Generated method - Getter of the
MiniCartComponent.shownProductCount attribute defined at extension acceleratorcms. |
java.lang.String |
getTitle()
Generated method - Getter of the
MiniCartComponent.title attribute defined at extension acceleratorcms. |
java.lang.String |
getTitle(java.util.Locale loc)
Generated method - Getter of the
MiniCartComponent.title attribute defined at extension acceleratorcms. |
CartTotalDisplayType |
getTotalDisplay()
Generated method - Getter of the
MiniCartComponent.totalDisplay attribute defined at extension acceleratorcms. |
void |
setLightboxBannerComponent(SimpleBannerComponentModel value)
Generated method - Setter of
MiniCartComponent.lightboxBannerComponent attribute defined at extension acceleratorcms. |
void |
setShownProductCount(int value)
Generated method - Setter of
MiniCartComponent.shownProductCount attribute defined at extension acceleratorcms. |
void |
setTitle(java.lang.String value)
Generated method - Setter of
MiniCartComponent.title attribute defined at extension acceleratorcms. |
void |
setTitle(java.lang.String value,
java.util.Locale loc)
Generated method - Setter of
MiniCartComponent.title attribute defined at extension acceleratorcms. |
void |
setTotalDisplay(CartTotalDisplayType value)
Generated method - Setter of
MiniCartComponent.totalDisplay attribute defined at extension acceleratorcms. |
getContainers, setContainersgetActions, getRestrictions, getSlots, getType, getType, getTypeCode, getVisible, isContainer, isOnlyOneRestrictionMustApply, isRestricted, setActions, setOnlyOneRestrictionMustApply, setRestrictions, setSlots, setVisiblegetCatalogVersion, getName, getUid, setCatalogVersion, setName, setUidgetComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerequals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplacepublic static final java.lang.String _TYPECODE
public static final java.lang.String TITLE
MiniCartComponent.title attribute defined at extension acceleratorcms.public static final java.lang.String TOTALDISPLAY
MiniCartComponent.totalDisplay attribute defined at extension acceleratorcms.public static final java.lang.String SHOWNPRODUCTCOUNT
MiniCartComponent.shownProductCount attribute defined at extension acceleratorcms.public static final java.lang.String LIGHTBOXBANNERCOMPONENT
MiniCartComponent.lightboxBannerComponent attribute defined at extension acceleratorcms.public MiniCartComponentModel()
public MiniCartComponentModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public MiniCartComponentModel(CatalogVersionModel _catalogVersion, java.lang.String _uid)
_catalogVersion - initial attribute declared by type CMSItem at extension cms2_uid - initial attribute declared by type CMSItem at extension cms2@Deprecated public MiniCartComponentModel(CatalogVersionModel _catalogVersion, ItemModel _owner, java.lang.String _uid)
_catalogVersion - initial attribute declared by type CMSItem at extension cms2_owner - initial attribute declared by type Item at extension core_uid - initial attribute declared by type CMSItem at extension cms2@Accessor(qualifier="lightboxBannerComponent", type=GETTER) public SimpleBannerComponentModel getLightboxBannerComponent()
MiniCartComponent.lightboxBannerComponent attribute defined at extension acceleratorcms.@Accessor(qualifier="shownProductCount", type=GETTER) public int getShownProductCount()
MiniCartComponent.shownProductCount attribute defined at extension acceleratorcms.@Accessor(qualifier="title", type=GETTER) public java.lang.String getTitle()
MiniCartComponent.title attribute defined at extension acceleratorcms.@Accessor(qualifier="title", type=GETTER) public java.lang.String getTitle(java.util.Locale loc)
MiniCartComponent.title attribute defined at extension acceleratorcms.loc - the value localization keyjava.lang.IllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="totalDisplay", type=GETTER) public CartTotalDisplayType getTotalDisplay()
MiniCartComponent.totalDisplay attribute defined at extension acceleratorcms.@Accessor(qualifier="lightboxBannerComponent", type=SETTER) public void setLightboxBannerComponent(SimpleBannerComponentModel value)
MiniCartComponent.lightboxBannerComponent attribute defined at extension acceleratorcms.value - the lightboxBannerComponent - It is a banner component that can be displayed in the mini cart.@Accessor(qualifier="shownProductCount", type=SETTER) public void setShownProductCount(int value)
MiniCartComponent.shownProductCount attribute defined at extension acceleratorcms.value - the shownProductCount - It controls the maximum number of products to display in the component.@Accessor(qualifier="title", type=SETTER) public void setTitle(java.lang.String value)
MiniCartComponent.title attribute defined at extension acceleratorcms.value - the title - It is localized title of the component.@Accessor(qualifier="title", type=SETTER) public void setTitle(java.lang.String value, java.util.Locale loc)
MiniCartComponent.title attribute defined at extension acceleratorcms.value - the title - It is localized title of the component.loc - the value localization keyjava.lang.IllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="totalDisplay", type=SETTER) public void setTotalDisplay(CartTotalDisplayType value)
MiniCartComponent.totalDisplay attribute defined at extension acceleratorcms.value - the totalDisplay - This attribute determines the type of displayed total cart value.Copyright © 2018 SAP SE. All Rights Reserved.