Class UtilHtml


  • public class UtilHtml
    extends Object
    A collection of commonly used methods to generate HTML-related content.
    Author:
    Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
    • Constructor Detail

      • UtilHtml

        public UtilHtml()
    • Method Detail

      • toHexString

        public static String toHexString​(Color color)
        Converts a Java Color instance into an hexadecimal string that can be used to format HTML components.
        Parameters:
        color - The Java Color instance.
        Returns:
        The hex representation of the color, including a heading hashtag (#).