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.UiComponentJava wrapper for UI5 web component ui5-avatar
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUi5Avatar.BackgroundColorpossible values for background-color attribute of ui5-avatarstatic classUi5Avatar.ImageFitTypepossible values for image-fit-type attribute of ui5-avatarstatic classUi5Avatar.Shapepossible values for shape attribute of ui5-avatarstatic classUi5Avatar.Sizepossible 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 voidsetAccessibleName(String name)sets the accessible-name attribute of ui5-avatarvoidsetBackgroundColor(Ui5Avatar.BackgroundColor color)sets the background color of avatarvoidsetIcon(String iconName)sets the icon. an icon is not displayd if an image url is setvoidsetImage(String imageUrl)sets a image to displayvoidsetImageFitType(Ui5Avatar.ImageFitType type)sets image-fit-type attribute of ui5-avatarvoidsetInitials(String initials)sets the initials attribute of ui5-avatarvoidsetInteractive(boolean interactive)sets the interactive attribute of ui5-avatarvoidsetShape(Ui5Avatar.Shape shape)sets the shape attribute of ui5-avatarvoidsetSize(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
-
-