Class Ui5List


  • public class Ui5List
    extends net.moewes.cloudui.UiComponent
    Java wrapper for UI5 web component ui5-list
    • Constructor Detail

      • Ui5List

        public Ui5List()
        default constructor
    • 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 class net.moewes.cloudui.UiComponent
      • render

        public net.moewes.cloudui.UiElement render()
        Overrides:
        render in class net.moewes.cloudui.UiComponent