Class Ui5Avatar


  • public class Ui5Avatar
    extends net.moewes.cloudui.UiComponent
    Java wrapper for UI5 web component ui5-avatar
    • Constructor Detail

      • Ui5Avatar

        public Ui5Avatar()
        default constructor
    • Method Detail

      • setImage

        public void setImage​(String imageUrl)
        sets a image to display
        Parameters:
        imageUrl - image url
      • setShape

        public void setShape​(Ui5Avatar.Shape shape)
        sets the shape attribute of ui5-avatar
        Parameters:
        shape - shape
      • setSize

        public void setSize​(Ui5Avatar.Size size)
        sets the size attribute of ui5-avatar
        Parameters:
        size - size
      • setIcon

        public void setIcon​(String iconName)
        sets the icon. an icon is not displayd if an image url is set
        Parameters:
        iconName - icon name - see ui5 icon explorer
      • setInitials

        public void setInitials​(String initials)
        sets the initials attribute of ui5-avatar
        Parameters:
        initials - up to two latin letters are displayed as initials
      • setAccessibleName

        public void setAccessibleName​(String name)
        sets the accessible-name attribute of ui5-avatar
        Parameters:
        name - name for aria
      • setInteractive

        public void setInteractive​(boolean interactive)
        sets the interactive attribute of ui5-avatar
        Parameters:
        interactive - flag
      • setBackgroundColor

        public void setBackgroundColor​(Ui5Avatar.BackgroundColor color)
        sets the background color of avatar
        Parameters:
        color - color
      • setImageFitType

        public void setImageFitType​(Ui5Avatar.ImageFitType type)
        sets image-fit-type attribute of ui5-avatar
        Parameters:
        type - imageFitType