Interface ResponsiveImage
- All Superinterfaces:
com.adobe.cq.wcm.core.components.models.Component,com.adobe.cq.export.json.ComponentExporter,LinkMixin,MediaMixin
@ConsumerType
public interface ResponsiveImage
extends com.adobe.cq.wcm.core.components.models.Component, com.adobe.cq.export.json.ComponentExporter, MediaMixin, LinkMixin
Defines the
ResponsiveImage Sling Model used for the
/apps/wcm-io/wcm/core/components/responsiveimage component.-
Field Summary
Fields inherited from interface com.adobe.cq.wcm.core.components.models.Component
PN_ID -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the image should display its caption as a popup (through the<img>titleattribute).@Nullable StringgetAlt()Returns the value for thealtattribute of the image.@Nullable List<com.adobe.cq.wcm.core.components.models.ImageArea> getAreas()Returns a list of image map areas.@Nullable StringReturns the file reference of the current image, if one exists.@Nullable StringgetTitle()Returns the value for the image'stitleattribute, if one was set.@Nullable StringgetUuid()Returns the value for the image's uuid, if one was set.Methods inherited from interface com.adobe.cq.wcm.core.components.models.Component
getAppliedCssClasses, getData, getExportedType, getIdMethods inherited from interface io.wcm.wcm.core.components.models.mixin.LinkMixin
getLinkAttributes, getLinkObject, getLinkURL, isLinkValidMethods inherited from interface io.wcm.wcm.core.components.models.mixin.MediaMixin
getMediaMarkup, getMediaObject, getMediaURL, isMediaValid
-
Method Details
-
getAlt
Returns the value for thealtattribute of the image.- Returns:
- the value for the image's
altattribute, if one was set, ornull
-
getTitle
Returns the value for the image'stitleattribute, if one was set.- Returns:
- the value for the image's
titleattribute, if one was set, ornull
-
getUuid
Returns the value for the image's uuid, if one was set.- Returns:
- the value for the image's uuid, if one was set, or
null
-
displayPopupTitle
boolean displayPopupTitle()Checks if the image should display its caption as a popup (through the<img>titleattribute).- Returns:
trueif the caption should be displayed as a popup,falseotherwise
-
getFileReference
Returns the file reference of the current image, if one exists.- Returns:
- the file reference of the current image, if one exists,
nullotherwise
-
getAreas
Returns a list of image map areas.- Returns:
- the image map areas
-