Package com.vaadin.flow.component.icon
Class IronIcon
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.icon.IronIcon
-
- All Implemented Interfaces:
AttachNotifier,ClickNotifier<IronIcon>,DetachNotifier,HasElement,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 Component implements HasStyle, ClickNotifier<IronIcon>
Deprecated.since Vaadin 21,IronIconis deprecated in favor ofIconServer side component for iron-icon element to display an icon.- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetColor()Deprecated.Gets the fill color of this icon as a String.voidsetColor(String color)Deprecated.Sets the fill color of the icon.voidsetSize(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 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, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
-
-
-
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 benullto 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 benullto 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
nullif the color has not been set
-
-