Package net.moewes.cloudui.ui5.list
Class Ui5ListItem
- java.lang.Object
-
- net.moewes.cloudui.UiComponent
-
- net.moewes.cloudui.ui5.list.Ui5ListItem
-
public class Ui5ListItem extends net.moewes.cloudui.UiComponent
Java wrapper for UI5 web component ui5-li
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Ui5ListItem.InfoState
possible values for info-state attribute of ui5-listatic class
Ui5ListItem.Type
possible values for type attribute of ui5-li
-
Constructor Summary
Constructors Constructor Description Ui5ListItem()
default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setDescription(String description)
sets an additional descriptionvoid
setIcon(String iconName, boolean atEnd)
sets an icon and its placementvoid
setImage(String url)
sets the image attribute of ui5-livoid
setInfo(String text)
sets the info attribute of ui5-livoid
setInfoState(Ui5ListItem.InfoState infoState)
sets the info-state attribute of ui5-livoid
setText(String text)
sets the main text of the list itemvoid
setType(Ui5ListItem.Type type)
sets the type attribute of ui5-li
-
-
-
Method Detail
-
setText
public void setText(String text)
sets the main text of the list item- Parameters:
text
- main text
-
setDescription
public void setDescription(String description)
sets an additional description- Parameters:
description
- additional text
-
setIcon
public void setIcon(String iconName, boolean atEnd)
sets an icon and its placement- Parameters:
iconName
- icon name - see icon exploreratEnd
- if true the icon is placed at the end of the item
-
setType
public void setType(Ui5ListItem.Type type)
sets the type attribute of ui5-li- Parameters:
type
- valid type
-
setInfo
public void setInfo(String text)
sets the info attribute of ui5-li- Parameters:
text
- text that is displayed in info area of list item
-
setImage
public void setImage(String url)
sets the image attribute of ui5-li- Parameters:
url
- the url to the image
-
setInfoState
public void setInfoState(Ui5ListItem.InfoState infoState)
sets the info-state attribute of ui5-li- Parameters:
infoState
- valid info state
-
-