Class IconResource

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.icon.AbstractIcon<com.vaadin.flow.component.icon.Icon>
com.vaadin.flow.component.icon.Icon
com.vaadin.featurepack.server.IconResource
All Implemented Interfaces:
Resource, com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.icon.Icon>, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.shared.HasTooltip, Serializable

public class IconResource extends com.vaadin.flow.component.icon.Icon implements Resource
A resource that wraps an Icon.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.vaadin.flow.component.ClickNotifier

    com.vaadin.flow.component.ClickNotifier.ClickFiltersJs
  • Constructor Summary

    Constructors
    Constructor
    Description
    IconResource(com.vaadin.flow.component.icon.Icon icon)
     
    IconResource(com.vaadin.flow.component.icon.IconFactory icon)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the MIME type of the resource.

    Methods inherited from class com.vaadin.flow.component.icon.Icon

    bindIcon, getCollection, getColor, getIcon, setColor, setIcon, setIcon, setIcon

    Methods inherited from class com.vaadin.flow.component.icon.AbstractIcon

    setSize

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, bindVisible, findAncestor, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, getUIOrThrow, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, setVisible, whenAttached

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.ClickNotifier

    addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

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

    addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName

    Methods inherited from interface com.vaadin.flow.component.shared.HasTooltip

    getTooltip, setTooltipMarkdown, setTooltipText
  • Constructor Details

    • IconResource

      public IconResource(com.vaadin.flow.component.icon.Icon icon)
    • IconResource

      public IconResource(com.vaadin.flow.component.icon.IconFactory icon)
  • Method Details

    • getMIMEType

      public String getMIMEType()
      Description copied from interface: Resource
      Gets the MIME type of the resource.
      Specified by:
      getMIMEType in interface Resource
      Returns:
      the MIME type of the resource.