Class Ui5Panel


  • public class Ui5Panel
    extends net.moewes.cloudui.UiComponent
    Java wrapper for UI5 web component ui5-panel
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Ui5Panel.AccessibleRole
      Possible values for accessible-role attribute of ui5-panel
    • Constructor Summary

      Constructors 
      Constructor Description
      Ui5Panel()
      default constructor
      Ui5Panel​(String headerText, boolean fixed)
      constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addToHeader​(net.moewes.cloudui.UiComponent component)
      adds a UiComponent to the header of the panel.
      void addToHeader​(net.moewes.cloudui.UiComponent... headerComponents)
      adds multiple elements to the header of the panel
      void setAccessibleRole​(Ui5Panel.AccessibleRole role)
      sets the accessible-role of ui5-panel
      void setCollapsed​(boolean collapsed)
      sets whether the panel is collapsed or not Only useful if the panel is not fiexed
      void setFixed​(boolean fixed)
      sets if the panel can be collapsed
      void setHeaderLevel​(Ui5Title.Level level)
      sets the header-level attribute of ui5-panel
      void setHeaderText​(String text)
      sets the header-text attribute of ui5-panel
      • Methods inherited from class net.moewes.cloudui.UiComponent

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

      • Ui5Panel

        public Ui5Panel()
        default constructor
      • Ui5Panel

        public Ui5Panel​(String headerText,
                        boolean fixed)
        constructor
        Parameters:
        headerText - text that is displayed as header of panel
        fixed - if true the panel cannot be collapsed
    • Method Detail

      • setHeaderText

        public void setHeaderText​(String text)
        sets the header-text attribute of ui5-panel
        Parameters:
        text - text that is displayed as header of panel
      • setHeaderLevel

        public void setHeaderLevel​(Ui5Title.Level level)
        sets the header-level attribute of ui5-panel
        Parameters:
        level - level for the headerText
      • setFixed

        public void setFixed​(boolean fixed)
        sets if the panel can be collapsed
        Parameters:
        fixed - when true the panel cannot be collapsed
      • setCollapsed

        public void setCollapsed​(boolean collapsed)
        sets whether the panel is collapsed or not Only useful if the panel is not fiexed
        Parameters:
        collapsed - true if the panel should initial be collapsed
      • setAccessibleRole

        public void setAccessibleRole​(Ui5Panel.AccessibleRole role)
        sets the accessible-role of ui5-panel
        Parameters:
        role - see enum
      • addToHeader

        public void addToHeader​(net.moewes.cloudui.UiComponent... headerComponents)
        adds multiple elements to the header of the panel
        Parameters:
        headerComponents - one or more components to add
      • addToHeader

        public void addToHeader​(net.moewes.cloudui.UiComponent component)
        adds a UiComponent to the header of the panel. When at least one element is added the headerText is ignored
        Parameters:
        component - UiComponent to add