Class ListItemWithImage

  • All Implemented Interfaces:
    IListItem

    public final class ListItemWithImage
    extends java.lang.Object
    implements IListItem
    • Method Detail

      • getType

        public java.lang.String getType()
        Specified by:
        getType in interface IListItem
        Returns:
        The type of component you are rendering.
      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface IListItem
        Returns:
        A unique identifier for the item.
      • getTitle

        public java.lang.String getTitle()
        Specified by:
        getTitle in interface IListItem
        Returns:
        The text shown as the title for the item.
      • getSubtitle

        public java.util.Optional<java.lang.String> getSubtitle()
        Specified by:
        getSubtitle in interface IListItem
        Returns:
        The text shown underneath the item's title.
      • getTertiaryText

        public java.util.Optional<java.lang.String> getTertiaryText()
        Specified by:
        getTertiaryText in interface IListItem
        Returns:
        The text shown next to the subtitle, separates by a bullet.
      • getRoundedImage

        public java.util.Optional<java.lang.Boolean> getRoundedImage()
        Specified by:
        getRoundedImage in interface IListItem
        Returns:
        Rounds the corners of the image. Default is false.
      • getDisabled

        public java.util.Optional<java.lang.Boolean> getDisabled()
        Specified by:
        getDisabled in interface IListItem
        Returns:
        Styles all list items and prevents the action. Default is false.
      • getAction

        public java.util.Optional<ActionComponent> getAction()
        Specified by:
        getAction in interface IListItem
        Returns:
        This can be a Submit Action, URL Action, or Sheets Action.
      • getImage

        public java.lang.String getImage()
        Returns:
        An image that will be displayed to the left of the item.
      • getImageWidth

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

        public int getImageHeight()
        Returns:
        The exact height of the image in pixels.
      • 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