Interface HasIcon

  • All Superinterfaces:
    com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, Serializable
    All Known Implementing Classes:
    LinkkiAnchor, LinkkiText

    @CssImport("./styles/linkki-has-icon.css")
    public interface HasIcon
    extends com.vaadin.flow.component.HasStyle
    A component that can have a VaadinIcon.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.vaadin.flow.component.icon.VaadinIcon getIcon()
      Returns the icon of this component.
      void setIcon​(com.vaadin.flow.component.icon.VaadinIcon icon)
      Sets the icon of this component.
      • Methods inherited from interface com.vaadin.flow.component.HasElement

        getElement
      • Methods inherited from interface com.vaadin.flow.component.HasStyle

        addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
    • Method Detail

      • getIcon

        @CheckForNull
        com.vaadin.flow.component.icon.VaadinIcon getIcon()
        Returns the icon of this component. When no icon is present, null is returned.
      • setIcon

        void setIcon​(@Nullable
                     com.vaadin.flow.component.icon.VaadinIcon icon)
        Sets the icon of this component. A value of null can be used to remove the icon.