Class Ui5Button


  • public class Ui5Button
    extends net.moewes.cloudui.UiComponent
    Java wrapper for UI5 web component ui5-button

    the attributes icon-size and submits are not supported

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Ui5Button.Design
      possible values of design attribute of ui5-button
    • Constructor Summary

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

      • Ui5Button

        public Ui5Button()
        default constructor
      • Ui5Button

        public Ui5Button​(String text)
        constructor
        Parameters:
        text - text of the button
    • Method Detail

      • setText

        public void setText​(String text)
        sets the text of the button
        Parameters:
        text - text of the button
      • setDesign

        public void setDesign​(Ui5Button.Design design)
        sets the design of a button
        Parameters:
        design - design
      • setDisabled

        public void setDisabled​(boolean disabled)
        disable the button
        Parameters:
        disabled - true if button is disabled
      • setIcon

        public void setIcon​(String iconName)
        sets an icon for the button
        Parameters:
        iconName - icon name - see icon explorer
      • setIconEnd

        public void setIconEnd​(boolean iconEnd)
        sets the icon-end attribute of ui-button
        Parameters:
        iconEnd - if true the icon is displayed behind to text
      • addClickHandler

        public void addClickHandler​(Consumer<net.moewes.cloudui.UiEvent> handler)
        adds a handler that reacts to a click event of ui5-button
        Parameters:
        handler - handler