Class GuideImage

  • All Implemented Interfaces:
    FDField, StyledFDField, java.io.Serializable, Use

    public class GuideImage
    extends GuideField
    implements java.io.Serializable
    GuideImage class encapsulates basic properties of the adaptive forms Image Component. The properties that it encapsulates are listed below:
    • Source of the image
    • Alternate Text of the image
    • Height of the image
    Since:
    AEM 6.0
    See Also:
    Serialized Form
    • Constructor Detail

      • GuideImage

        public GuideImage()
    • Method Detail

      • getImageSrc

        public java.lang.String getImageSrc()
                                     throws javax.jcr.RepositoryException,
                                            java.io.IOException
        Returns the source where the image is present.
        Returns:
        String representing source of the image.
        Throws:
        javax.jcr.RepositoryException
        java.io.IOException
      • getStyles

        public java.lang.String getStyles()
        Description copied from class: GuideNode
        Returns the string containing the width and height property represented as an inline CSS rule.
        Overrides:
        getStyles in class GuideNode
        Returns:
        string containing width and height as inline CSS styl
      • getDropTargetClass

        public java.lang.String getDropTargetClass()
                                            throws javax.jcr.RepositoryException
        Returns the drop target class.
        Returns:
        String representing drop target class for touch ui.
        Throws:
        javax.jcr.RepositoryException
      • getAltText

        public java.lang.String getAltText()
        Returns the alternate text of the Image configured in the authoring dialog.
        Returns:
        String representing alternate text
      • getHeight

        public java.lang.String getHeight()
        Returns the height of image configured in the authoring dialog
        Specified by:
        getHeight in interface StyledFDField
        Overrides:
        getHeight in class GuideNode
        Returns:
        String representing height of the image
      • getGuideFieldType

        public java.lang.String getGuideFieldType()
        Returns the field type of the Adaptive Forms Component
        Specified by:
        getGuideFieldType in interface FDField
        Overrides:
        getGuideFieldType in class GuideNode
        Returns:
        String representing guide field type