com.softicar.platform.common.ui.color.IHtmlColor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.ui.color;
/**
* A simple HTML color, which can be converted into an HTML color value.
*
* TODO move the {@link #toHtml()} to {@link IColor} and dissolve this
* interface.
*
* @author Oliver Richers
*/
public interface IHtmlColor {
/**
* Converts this color into a string in the usual HTML color format.
*
* The returned string starts with a hash character and followed by the
* color value in hexadecimal format. The length of the returned string is
* always 7 characters.
*
* @return the value of this color in the usual HTML color format
*/
String toHtml();
}