Interface StaticImage
-
- All Superinterfaces:
Component,com.adobe.cq.export.json.ComponentExporter,FormComponent
@ConsumerType public interface StaticImage extends FormComponent
-
-
Field Summary
-
Fields inherited from interface com.adobe.cq.forms.core.components.models.form.FormComponent
CUSTOM_PROPERTY_WRAPPER
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default @Nullable java.lang.StringgetAltText()Returns the alternate text in place of image.default @Nullable java.lang.StringgetImageSrc()Returns the source where the image is present.default java.lang.StringgetValue()Retrieves the text value to be displayed.-
Methods inherited from interface com.adobe.cq.wcm.core.components.models.Component
getAppliedCssClasses, getData, getExportedType, getId
-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.FormComponent
getDataRef, getDorProperties, getEvents, getFieldType, getName, getPath, getProperties, getRules, isVisible, setI18n
-
-
-
-
Method Detail
-
getImageSrc
@Nullable default @Nullable java.lang.String getImageSrc() throws javax.jcr.RepositoryException, java.io.IOExceptionReturns the source where the image is present.- Returns:
- the source where the image is present
- Throws:
javax.jcr.RepositoryExceptionjava.io.IOException- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getValue
default java.lang.String getValue()
Retrieves the text value to be displayed.- Returns:
- the text value to be displayed, or
nullif no value can be returned - Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1;
-
getAltText
@Nullable default @Nullable java.lang.String getAltText()
Returns the alternate text in place of image.- Returns:
- the alternate text in place of image
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
-