Package net.moewes.cloudui.ui5.list
Class Ui5List
- java.lang.Object
-
- net.moewes.cloudui.UiComponent
-
- net.moewes.cloudui.ui5.list.Ui5List
-
public class Ui5List extends net.moewes.cloudui.UiComponentJava wrapper for UI5 web component ui5-list
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUi5List.Modepossible values for attribute mode of ui5-liststatic classUi5List.Separatorspossible values for attribute separators of ui5-list
-
Constructor Summary
Constructors Constructor Description Ui5List()default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEventListener(String event, Consumer<net.moewes.cloudui.UiEvent> function)voidaddHeader(net.moewes.cloudui.UiComponent component)adds a component to the header of the list.net.moewes.cloudui.UiElementrender()voidsetFooterText(String footerText)sets the footer of the listvoidsetHeaderText(String headerText)sets the header text of the listvoidsetInset(boolean inset)sets inset attribute of ui5-listvoidsetMode(Ui5List.Mode mode)sets attribute mode of ui5-listvoidsetNoDataText(String text)sets attribute no-data-text of ui5-listvoidsetSeparators(Ui5List.Separators separators)sets attribute separator of ui5-list
-
-
-
Method Detail
-
setHeaderText
public void setHeaderText(String headerText)
sets the header text of the list- Parameters:
headerText- text that is diplayed in the list header
-
setFooterText
public void setFooterText(String footerText)
sets the footer of the list- Parameters:
footerText- text that is displayed as footer
-
setInset
public void setInset(boolean inset)
sets inset attribute of ui5-list- Parameters:
inset- flag
-
setNoDataText
public void setNoDataText(String text)
sets attribute no-data-text of ui5-list- Parameters:
text- text that is displayed when there no list items
-
setMode
public void setMode(Ui5List.Mode mode)
sets attribute mode of ui5-list- Parameters:
mode- value
-
setSeparators
public void setSeparators(Ui5List.Separators separators)
sets attribute separator of ui5-list- Parameters:
separators- value
-
addHeader
public void addHeader(net.moewes.cloudui.UiComponent component)
adds a component to the header of the list. In this case the headerText is ignored- Parameters:
component- component to add
-
addEventListener
public void addEventListener(String event, Consumer<net.moewes.cloudui.UiEvent> function)
- Overrides:
addEventListenerin classnet.moewes.cloudui.UiComponent
-
render
public net.moewes.cloudui.UiElement render()
- Overrides:
renderin classnet.moewes.cloudui.UiComponent
-
-