Interface HasComponentAsIcon

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.vaadin.flow.component.Component getIcon()
      Returns current icon.
      void setIcon​(com.vaadin.flow.component.Component icon)
      Sets given Component as an icon of this object.
    • Method Detail

      • setIcon

        void setIcon​(com.vaadin.flow.component.Component icon)
        Sets given Component as an icon of this object.
        Parameters:
        icon - A Component to be used as an icon. Can be null to clear current icon.
      • getIcon

        com.vaadin.flow.component.Component getIcon()
        Returns current icon.
        Returns:
        A Component that serves as an icon for this object. Can be null.