Class Ui5Card


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

      Constructors 
      Constructor Description
      Ui5Card()
      default constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addActionElement​(net.moewes.cloudui.UiComponent... components)
      add components to the up right corner of the header
      void addIcon​(String iconName)
      add an icon to the header
      void interactiveHeader​(boolean interactiveHeader)
      Defines if the ui5-card header would be interactive, e.g gets hover effect, gets focused and headerPress event is fired, when it is pressed.
      net.moewes.cloudui.UiElement render()
      overridden to support late binding of boolean attributes
      void setHeading​(String text)
      sets the header text of the card
      void setStatustext​(String text)
      sets a status text in up right corner of the header of the card.
      void setSubHeading​(String text)
      sets the second text line in the header of the card
      • Methods inherited from class net.moewes.cloudui.UiComponent

        add, add, addEventListener, bind, getComponentWithId, getElement, getEmptyValue, getId, getValue, handleEvent, registerEvenrHandler, remove, setId, setInnerHtml, setValue, setValuesWithBinder, unbind
    • Constructor Detail

      • Ui5Card

        public Ui5Card()
        default constructor
    • Method Detail

      • setHeading

        public void setHeading​(String text)
        sets the header text of the card
        Parameters:
        text - text to display as header
      • setSubHeading

        public void setSubHeading​(String text)
        sets the second text line in the header of the card
        Parameters:
        text - text to display as subheader
      • setStatustext

        public void setStatustext​(String text)
        sets a status text in up right corner of the header of the card. When component are added to the action slot this is ignored
        Parameters:
        text - text to display
      • addIcon

        public void addIcon​(String iconName)
        add an icon to the header
        Parameters:
        iconName - name of the icon
      • interactiveHeader

        public void interactiveHeader​(boolean interactiveHeader)
        Defines if the ui5-card header would be interactive, e.g gets hover effect, gets focused and headerPress event is fired, when it is pressed.
        Parameters:
        interactiveHeader - when true header ist interactive
      • addActionElement

        public void addActionElement​(net.moewes.cloudui.UiComponent... components)
        add components to the up right corner of the header
        Parameters:
        components - one or more ui components
      • render

        public net.moewes.cloudui.UiElement render()
        overridden to support late binding of boolean attributes
        Overrides:
        render in class net.moewes.cloudui.UiComponent