Modifier and Type | Field and Description |
---|---|
static String |
NN_ACTIONS
Name of the child node where the Call-to-Action elements are stored
|
static String |
PN_ACTION_LINK
Name of the resource property that stores the Call-to-Action link
|
static String |
PN_ACTION_TEXT
Name of the resource property that stores the Call-to-Action text
|
static String |
PN_ACTIONS_DISABLED
Name of the policy property that defines whether or not Call-to-Actions are disabled
|
static String |
PN_ACTIONS_ENABLED
Name of the resource property that defines whether or not the teaser has Call-to-Action elements
|
static String |
PN_DESCRIPTION_FROM_PAGE
Name of the resource property that defines whether or not the description value is taken from the linked page.
|
static String |
PN_DESCRIPTION_HIDDEN
Name of the policy property that defines whether or not the description is hidden.
|
static String |
PN_IMAGE_LINK_HIDDEN
Name of the policy property that defines whether or not the image link is hidden.
|
static String |
PN_PRETITLE_HIDDEN
Name of the policy property that defines whether or not the pretitle is hidden.
|
static String |
PN_SHOW_TITLE_TYPE
Name of the policy property that defines whether or not the title type is shown.
|
static String |
PN_TITLE_FROM_PAGE
Name of the resource property that defines whether or not the title value is taken from the linked page.
|
static String |
PN_TITLE_HIDDEN
Name of the policy property that defines whether or not the title is hidden.
|
static String |
PN_TITLE_LINK_HIDDEN
Name of the policy property that defines whether or not the title link is hidden.
|
static String |
PN_TITLE_TYPE
Name of the policy property that stores the value for this title's HTML element type.
|
Modifier and Type | Method and Description |
---|---|
default List<ListItem> |
getActions()
Returns the list of Call-to-Action elements
|
default String |
getDescription()
Returns this teaser's description, if one was defined.
|
default Resource |
getImageResource()
Returns the image resource for this teaser.
|
default @Nullable Link |
getLink()
Returns the primary link of this teaser.
|
default String |
getLinkURL()
Deprecated.
Please use
getLink() |
default String |
getPretitle()
Returns this teaser's pretitle, if one was defined.
|
default String |
getTitle()
Returns this teaser's title, if one was defined.
|
default String |
getTitleType()
Returns the HTML element type (h1-h6) used for the title.
|
default boolean |
isActionsEnabled()
Checks if the teaser has Call-to-Action elements
|
default boolean |
isImageLinkHidden()
Checks if the link on the image is hidden.
|
default boolean |
isTitleLinkHidden()
Checks if the link on the title is hidden.
|
getAppliedCssClasses, getData, getExportedType, getId
static final String PN_ACTIONS_ENABLED
static final String NN_ACTIONS
static final String PN_ACTION_LINK
static final String PN_ACTION_TEXT
static final String PN_ACTIONS_DISABLED
static final String PN_IMAGE_LINK_HIDDEN
static final String PN_TITLE_HIDDEN
static final String PN_PRETITLE_HIDDEN
static final String PN_TITLE_LINK_HIDDEN
static final String PN_TITLE_FROM_PAGE
static final String PN_DESCRIPTION_HIDDEN
static final String PN_DESCRIPTION_FROM_PAGE
static final String PN_TITLE_TYPE
getTitleType()
,
Constant Field Valuesstatic final String PN_SHOW_TITLE_TYPE
default boolean isActionsEnabled()
true
if teaser has CTAs, false
otherwisedefault List<ListItem> getActions()
@Nullable default @Nullable Link getLink()
@Deprecated default String getLinkURL()
getLink()
null
default Resource getImageResource()
null
default boolean isImageLinkHidden()
true
if link is hidden on the image, false
otherwisedefault String getPretitle()
null
default String getTitle()
null
default boolean isTitleLinkHidden()
true
if link is hidden on the title, false
otherwisedefault String getDescription()
null
default String getTitleType()
Copyright © 2022. All rights reserved.