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") @JsModule("@polymer/iron-icon/iron-icon.js") @Deprecated public class IronIcon extends Component implements HasStyle, ClickNotifier<IronIcon>
Deprecated.since Vaadin 21,IronIcon
is deprecated in favor ofIcon
Server side component for iron-icon element to display an icon.
Author:
Vaadin Ltd
See Also:
-
-
Method Summary
All 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, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, 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
-
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 benull
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 benull
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
-
-