Class ImageComponent


  • public final class ImageComponent
    extends java.lang.Object
    • Method Detail

      • getId

        public java.util.Optional<java.lang.String> getId()
        Returns:
        A unique identifier for the component.
      • getUrl

        public java.lang.String getUrl()
        Returns:
        The URL where the image is located.
      • getAlign

        public java.util.Optional<ImageComponent.Align> getAlign()
        Returns:
        Aligns the image inside the component. Default is left.
      • getWidth

        public int getWidth()
        Returns:
        The exact width of the image in pixels.
      • getHeight

        public int getHeight()
        Returns:
        The exact height of the image in pixels.
      • getRounded

        public java.util.Optional<java.lang.Boolean> getRounded()
        Returns:
        Rounds the corners of the image. Default is false.
      • getBottomMargin

        public java.util.Optional<java.lang.String> getBottomMargin()
        Returns:
        Disables a component's margin-bottom of 10px.
      • getAction

        public java.util.Optional<UrlActionComponent> getAction()
        Returns:
        This can be a URL Action only.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object