Class IronIcon

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.ClickNotifier<IronIcon>, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, Serializable

    @Tag("iron-icon")
    @NpmPackage(value="@polymer/iron-icon",version="3.0.1") @NpmPackage(value="@vaadin/vaadin-icons",version="23.6.3")
    @JsModule("@polymer/iron-icon/iron-icon.js")
    @Deprecated
    public class IronIcon
    extends com.vaadin.flow.component.Component
    implements com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.ClickNotifier<IronIcon>
    Deprecated.
    since Vaadin 21, IronIcon is deprecated in favor of Icon
    Server side component for iron-icon element to display an icon.
    Author:
    Vaadin Ltd
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      IronIcon​(String collection, String icon)
      Deprecated.
      Creates an Icon component that displays the given icon from the given collection.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      String getColor()
      Deprecated.
      Gets the fill color of this icon as a String.
      void setColor​(String color)
      Deprecated.
      Sets the fill color of the icon.
      void setSize​(String size)
      Deprecated.
      Sets the width and the height of the icon.
      • Methods inherited from class com.vaadin.flow.component.Component

        addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setId, setVisible
      • 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, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
    • Constructor Detail

      • IronIcon

        public IronIcon​(String collection,
                        String icon)
        Deprecated.
        Creates an Icon component that displays the given icon from the given collection.
        Parameters:
        collection - the icon collection
        icon - the icon name
    • Method Detail

      • setSize

        public void setSize​(String size)
        Deprecated.
        Sets the width and the height of the icon.

        The size should be in a format understood by the browser, e.g. "100px" or "2.5em".

        Parameters:
        size - the size to set, may be null to clear the value
      • setColor

        public void setColor​(String color)
        Deprecated.
        Sets the fill color of the icon.

        The color should be in a format understood by the browser, e.g. "orange", "#FF9E2C" or "rgb(255, 158, 44)".

        Parameters:
        color - the fill color to set, may be null to clear the value
      • getColor

        public String getColor()
        Deprecated.
        Gets the fill color of this icon as a String.
        Returns:
        the fill color of the icon, or null if the color has not been set