Copyright© 2008-2025 Sitevision AB, all rights reserved.
@Requireable(value="ColorUtil") public interface ColorUtil
An instance of the Sitevision class implementing this interface can be obtained via Utils.getColorUtil().
See Utils for how to obtain an instance of the Utils interface.
| Modifier and Type | Method and Description |
|---|---|
Node |
getColorByHtmlHexValue(String aHexString)
Gets the color with a given html hex value (i.e. a '#' followed by 6 characters [0-9,a-f,A-F]).
|
Node |
getColorByHtmlHexValue(String aHexString,
Node aDefaultValue)
Gets the color with a given html hex value (i.e. a '#' followed by 6 characters [0-9,a-f,A-F]) with a fallback value if no color matches.
|
Node |
getColorByName(String aColorName)
Gets the color with a given name
|
Node |
getColorByName(String aColorName,
Node aDefaultValue)
Gets the color with a given name with a fallback value if no color matches
|
Node getColorByName(String aColorName)
aColorName - the name of the fontnull if no color matchesNode getColorByName(String aColorName, Node aDefaultValue)
aColorName - the name of the fontaDefaultValue - fallback valueNode getColorByHtmlHexValue(String aHexString)
aHexString - the hex string value of the font (starts with a '#' and ends with 6 characters [0-9,a-f,A-F])null if no color matchesNode getColorByHtmlHexValue(String aHexString, Node aDefaultValue)
aHexString - the hex string value of the font (starts with a '#' and ends with 6 characters [0-9,a-f,A-F])aDefaultValue - fallback valueSitevision - Content Management Made Easy
Sitevision is an advanced Java enterprise portal product that implements Java Content Repository (JSR 283).
Copyright© 2008-2025 Sitevision AB, all rights reserved.