Interface HasComponentAsIcon

All Known Subinterfaces:
WithComponentAsIconMixin<SELF>
All Known Implementing Classes:
IndexedButton, SimpleButtonState

public interface HasComponentAsIcon
Marker interface for objects that accept a general Component as an icon.
Since:
2020-07-07
Author:
miki
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.component.Component
    Returns current icon.
    void
    setIcon(com.vaadin.flow.component.Component icon)
    Sets given Component as an icon of this object.
  • Method Details

    • 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.