Class IronIcon

    • 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