Interface HasIcon

  • All Known Subinterfaces:
    WithIconMixin<SELF>

    public interface HasIcon
    Marker interface for objects that have an Icon.
    Since:
    2020-07-07
    Author:
    miki
    • Method Summary

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

      • setIcon

        void setIcon​(com.vaadin.flow.component.icon.Icon icon)
        Sets an icon associated with this object.
        Parameters:
        icon - Icon to set. Can be null to remove current icon.
      • getIcon

        com.vaadin.flow.component.icon.Icon getIcon()
        Returns current icon.
        Returns:
        Current Icon. Can be null if no icon has been associated.