Class Ui5Label


  • public class Ui5Label
    extends net.moewes.cloudui.UiComponent
    Java wrapper for UI5 web component ui5-label
    • Constructor Summary

      Constructors 
      Constructor Description
      Ui5Label()
      default constructor
      Ui5Label​(String text)
      constructor
    • Constructor Detail

      • Ui5Label

        public Ui5Label()
        default constructor
      • Ui5Label

        public Ui5Label​(String text)
        constructor
        Parameters:
        text - text to display
    • Method Detail

      • setText

        public void setText​(String text)
        sets the text to display
        Parameters:
        text - text to display
      • setFor

        public void setFor​(net.moewes.cloudui.UiComponent element)
        sets the for attribute of ui5-label
        Parameters:
        element - component for that this label is for
      • setFor

        public void setFor​(String id)
        sets the for attribute of ui5-label

        hint: consider that the id is dynamically generated for UiComponents. Call this method as late as possible

        Parameters:
        id - id of the input this label is for
      • setRequired

        public void setRequired​(boolean required)
        sets the required attribute of ui5-label
        Parameters:
        required - flag
      • isRequired

        public boolean isRequired()
        Returns:
        true if label is for a required field
      • setShowColon

        public void setShowColon​(boolean showColon)
        sets showColon attribute of ui5-label
        Parameters:
        showColon - if true a colon is added
      • isColonShown

        public boolean isColonShown()
        Returns:
        true if colon at the end of the label ist added
      • setWrap

        public void setWrap​(boolean wrap)
        sets the wrap attribute of ui5-label
        Parameters:
        wrap - if true label could be multiline
      • isWrapEnabled

        public boolean isWrapEnabled()
        Returns:
        true if wrap ist enabled
      • render

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