Interface Teaser
- All Superinterfaces:
Component,ComponentExporter
Defines the
Teaser Sling Model for the /apps/core/wcm/components/teaser component.- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the child node where the Call-to-Action elements are storedstatic final StringName of the resource property that stores the Call-to-Action linkstatic final StringName of the resource property that stores the Call-to-Action textstatic final StringName of the policy property that defines whether or not Call-to-Actions are disabledstatic final StringName of the resource property that defines whether or not the teaser has Call-to-Action elementsstatic final StringName of the resource property that defines whether or not the description value is taken from the linked page.static final StringName of the policy property that defines whether or not the description is hidden.static final StringName of the policy property that defines whether or not the image link is hidden.static final StringName of the policy property that defines whether or not the pretitle is hidden.static final StringName of the policy property that defines whether or not the title type is shown.static final StringName of the resource property that defines whether or not the title value is taken from the linked page.static final StringName of the policy property that defines whether or not the title is hidden.static final StringName of the policy property that defines whether or not the title link is hidden.static final StringName of the policy property that stores the value for this title's HTML element type. -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of Call-to-Action elementsdefault StringReturns this teaser's description, if one was defined.default ResourceReturns the image resource for this teaser.default @Nullable LinkgetLink()Returns the primary link of this teaser.default StringDeprecated.default StringReturns this teaser's pretitle, if one was defined.default StringgetTitle()Returns this teaser's title, if one was defined.default StringReturns the HTML element type (h1-h6) used for the title.default booleanChecks if the teaser has Call-to-Action elementsdefault booleanChecks if the link on the image is hidden.default booleanChecks if the link on the title is hidden.Methods inherited from interface com.adobe.cq.wcm.core.components.models.Component
getAppliedCssClasses, getData, getExportedType, getId
-
Field Details
-
PN_ACTIONS_ENABLED
Name of the resource property that defines whether or not the teaser has Call-to-Action elements- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
- See Also:
-
NN_ACTIONS
Name of the child node where the Call-to-Action elements are stored- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
- See Also:
-
PN_ACTION_LINK
Name of the resource property that stores the Call-to-Action link- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
- See Also:
-
PN_ACTION_TEXT
Name of the resource property that stores the Call-to-Action text- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
- See Also:
-
PN_ACTIONS_DISABLED
Name of the policy property that defines whether or not Call-to-Actions are disabled- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
- See Also:
-
PN_IMAGE_LINK_HIDDEN
Name of the policy property that defines whether or not the image link is hidden.- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
- See Also:
-
PN_TITLE_HIDDEN
Name of the policy property that defines whether or not the title is hidden.- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
- See Also:
-
PN_PRETITLE_HIDDEN
Name of the policy property that defines whether or not the pretitle is hidden.- Since:
- com.adobe.cq.wcm.core.components.models 12.12.0
- See Also:
-
PN_TITLE_LINK_HIDDEN
Name of the policy property that defines whether or not the title link is hidden.- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
- See Also:
-
PN_TITLE_FROM_PAGE
Name of the resource property that defines whether or not the title value is taken from the linked page.- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
- See Also:
-
PN_DESCRIPTION_HIDDEN
Name of the policy property that defines whether or not the description is hidden.- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
- See Also:
-
PN_DESCRIPTION_FROM_PAGE
Name of the resource property that defines whether or not the description value is taken from the linked page.- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
- See Also:
-
PN_TITLE_TYPE
Name of the policy property that stores the value for this title's HTML element type.- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
- See Also:
-
PN_SHOW_TITLE_TYPE
Name of the policy property that defines whether or not the title type is shown.- Since:
- com.adobe.cq.wcm.core.components.models 12.16.0
- See Also:
-
-
Method Details
-
isActionsEnabled
default boolean isActionsEnabled()Checks if the teaser has Call-to-Action elements- Returns:
trueif teaser has CTAs,falseotherwise- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
-
getActions
Returns the list of Call-to-Action elements- Returns:
- the list of CTAs
- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
-
getLink
Returns the primary link of this teaser.- Returns:
- the primary link of this teaser
- Since:
- com.adobe.cq.wcm.core.components.models 12.21.0
-
getLinkURL
Deprecated.Please usegetLink()Returns the URL to which this teaser links, if one was defined.- Returns:
- the URL to which teaser links or
null - Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
-
getImageResource
Returns the image resource for this teaser.- Returns:
- the image resource for this teaser or
null - Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
-
isImageLinkHidden
default boolean isImageLinkHidden()Checks if the link on the image is hidden.- Returns:
trueif link is hidden on the image,falseotherwise- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
-
getPretitle
Returns this teaser's pretitle, if one was defined.- Returns:
- the teaser's pretitle or
null - Since:
- com.adobe.cq.wcm.core.components.models 12.12.0
-
getTitle
Returns this teaser's title, if one was defined.- Returns:
- the teaser's title or
null - Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
-
isTitleLinkHidden
default boolean isTitleLinkHidden()Checks if the link on the title is hidden.- Returns:
trueif link is hidden on the title,falseotherwise- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
-
getDescription
Returns this teaser's description, if one was defined.- Returns:
- the teaser's description or
null - Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
-
getTitleType
Returns the HTML element type (h1-h6) used for the title.- Returns:
- the element type
- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
-
getLink()