Package net.moewes.cloudui.ui5
Class Ui5Badge
- java.lang.Object
-
- net.moewes.cloudui.UiComponent
-
- net.moewes.cloudui.ui5.Ui5Badge
-
public class Ui5Badge extends net.moewes.cloudui.UiComponent
Java wrapper for UI5 web component ui5-badge
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Ui5Badge.ColorScheme
possible values for attribute color-scheme
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIcon(Ui5Icon icon)
adds a icon to the badgevoid
setColorScheme(Ui5Badge.ColorScheme schema)
stes color-scheme attribute of ui5-badge
-
-
-
Constructor Detail
-
Ui5Badge
public Ui5Badge()
default constructor
-
Ui5Badge
public Ui5Badge(String text)
constructor- Parameters:
text
- text to display
-
Ui5Badge
public Ui5Badge(String text, Ui5Icon icon)
constructor- Parameters:
text
- text to displayicon
- icon component
-
Ui5Badge
public Ui5Badge(Ui5Icon icon)
constructor- Parameters:
icon
- icon component
-
-
Method Detail
-
addIcon
public void addIcon(Ui5Icon icon)
adds a icon to the badge- Parameters:
icon
- icon component
-
setColorScheme
public void setColorScheme(Ui5Badge.ColorScheme schema)
stes color-scheme attribute of ui5-badge- Parameters:
schema
- value
-
-