Interface Title
- All Superinterfaces:
Component,ComponentExporter
Defines the
Title Sling Model used for the /apps/core/wcm/components/title component.- Since:
- com.adobe.cq.wcm.core.components.models 11.0.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable LinkgetLink()Returns the Title's link.default StringDeprecated.default StringgetText()Returns the text to be displayed as title.default StringgetType()Returns the HTML element type (h1-h6) used for the markup.default booleanChecks if link is disabled on the title.Methods inherited from interface com.adobe.cq.wcm.core.components.models.Component
getAppliedCssClasses, getData, getExportedType, getId
-
Field Details
-
PN_DESIGN_DEFAULT_TYPE
Name of the configuration policy property that will store the default value for this title's HTML element type.- Since:
- com.adobe.cq.wcm.core.components.models 11.1.0
- See Also:
-
PN_TITLE_LINK_DISABLED
Name of the policy property that defines whether or not the title link is disabled.- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
- See Also:
-
-
Method Details
-
getText
Returns the text to be displayed as title.- Returns:
- the title's text
- Since:
- com.adobe.cq.wcm.core.components.models 11.0.0; marked
defaultin 12.1.0
-
getType
Returns the HTML element type (h1-h6) used for the markup.- Returns:
- the element type
- Since:
- com.adobe.cq.wcm.core.components.models 11.0.0; marked
defaultin 12.1.0
-
getLink
Returns the Title's link.- Returns:
- the title's link
- Since:
- com.adobe.cq.wcm.core.components.models 12.20.0
-
getLinkURL
Deprecated.Please usegetLink()Returns the Title's link URL, if one was set.- Returns:
- the title's link URL, if one was set, or
null - Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
-
isLinkDisabled
default boolean isLinkDisabled()Checks if link is disabled on the title.- Returns:
trueif link is disabled on the title,falseotherwise- Since:
- com.adobe.cq.wcm.core.components.models 12.4.0
-
getLink()