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.UiComponentJava wrapper for UI5 web component ui5-li
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUi5ListItem.InfoStatepossible values for info-state attribute of ui5-listatic classUi5ListItem.Typepossible 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 voidsetDescription(String description)sets an additional descriptionvoidsetIcon(String iconName, boolean atEnd)sets an icon and its placementvoidsetImage(String url)sets the image attribute of ui5-livoidsetInfo(String text)sets the info attribute of ui5-livoidsetInfoState(Ui5ListItem.InfoState infoState)sets the info-state attribute of ui5-livoidsetText(String text)sets the main text of the list itemvoidsetType(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
-
-