Package net.moewes.cloudui.ui5
Class Ui5Avatar
- java.lang.Object
-
- net.moewes.cloudui.UiComponent
-
- net.moewes.cloudui.ui5.Ui5Avatar
-
public class Ui5Avatar extends net.moewes.cloudui.UiComponent
Java wrapper for UI5 web component ui5-avatar
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Ui5Avatar.BackgroundColor
possible values for background-color attribute of ui5-avatarstatic class
Ui5Avatar.ImageFitType
possible values for image-fit-type attribute of ui5-avatarstatic class
Ui5Avatar.Shape
possible values for shape attribute of ui5-avatarstatic class
Ui5Avatar.Size
possible values for size attribute of ui5-avatar
-
Constructor Summary
Constructors Constructor Description Ui5Avatar()
default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setAccessibleName(String name)
sets the accessible-name attribute of ui5-avatarvoid
setBackgroundColor(Ui5Avatar.BackgroundColor color)
sets the background color of avatarvoid
setIcon(String iconName)
sets the icon. an icon is not displayd if an image url is setvoid
setImage(String imageUrl)
sets a image to displayvoid
setImageFitType(Ui5Avatar.ImageFitType type)
sets image-fit-type attribute of ui5-avatarvoid
setInitials(String initials)
sets the initials attribute of ui5-avatarvoid
setInteractive(boolean interactive)
sets the interactive attribute of ui5-avatarvoid
setShape(Ui5Avatar.Shape shape)
sets the shape attribute of ui5-avatarvoid
setSize(Ui5Avatar.Size size)
sets the size attribute of ui5-avatar
-
-
-
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
-
-