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.UiComponent
Java wrapper for UI5 web component ui5-list
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Ui5List.Mode
possible values for attribute mode of ui5-liststatic class
Ui5List.Separators
possible 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 void
addEventListener(String event, Consumer<net.moewes.cloudui.UiEvent> function)
void
addHeader(net.moewes.cloudui.UiComponent component)
adds a component to the header of the list.net.moewes.cloudui.UiElement
render()
void
setFooterText(String footerText)
sets the footer of the listvoid
setHeaderText(String headerText)
sets the header text of the listvoid
setInset(boolean inset)
sets inset attribute of ui5-listvoid
setMode(Ui5List.Mode mode)
sets attribute mode of ui5-listvoid
setNoDataText(String text)
sets attribute no-data-text of ui5-listvoid
setSeparators(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:
addEventListener
in classnet.moewes.cloudui.UiComponent
-
render
public net.moewes.cloudui.UiElement render()
- Overrides:
render
in classnet.moewes.cloudui.UiComponent
-
-