Package com.webfirmframework.wffweb.css
Class UnicodeRange
java.lang.Object
com.webfirmframework.wffweb.css.core.AbstractCssProperty<UnicodeRange>
com.webfirmframework.wffweb.css.UnicodeRange
- All Implemented Interfaces:
CssProperty
,Serializable
,Cloneable
unicode-range: unicode-range;Optional. Defines the range of unicode characters the font supports. Default value is "U+0-10FFFF"
- Since:
- 1.1.2
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionUnicodeRange
(UnicodeRange fontFamily) UnicodeRange
(String cssValue) UnicodeRange
(String... unicodeChars) Eg:- String[] unicodeChars = {"U+0400-045F", "U+0490-0491", "U+04B0-04B1", "U+2116"}; -
Method Summary
Modifier and TypeMethodDescriptionprotected static String
getBuiltCssValue
(String... unicodeChars) String[]
gets the unicodeChars as an array and if here is no value set then returns an empty array.setCssValue
(String cssValue) void
setUnicodeChars
(String[] unicodeChars) Eg:- String[] unicodeChars = {"U+0400-045F", "U+0490-0491", "U+04B0-04B1", "U+2116"};toString()
Methods inherited from class com.webfirmframework.wffweb.css.core.AbstractCssProperty
clone, getStateChangeInformer, isAlreadyInUse, setAlreadyInUse, setStateChangeInformer, toCssString
-
Field Details
-
DEFAULT_VALUE
- See Also:
-
EMPTY_ARRAY
-
-
Constructor Details
-
UnicodeRange
public UnicodeRange()- Since:
- 1.1.2 initial implementation, 3.0.2 the default value is U+0-10FFFF
-
UnicodeRange
- Parameters:
cssValue
- the css value to set.
-
UnicodeRange
Eg:- String[] unicodeChars = {"U+0400-045F", "U+0490-0491", "U+04B0-04B1", "U+2116"};
- Parameters:
unicodeChars
- the unicodeChars to set- Since:
- 1.1.2
-
UnicodeRange
- Parameters:
fontFamily
- theFontFamily
object from which the cssValue to set.And,null
will throwNullValueException
-
-
Method Details
-
getBuiltCssValue
- Parameters:
unicodeChars
-- Returns:
- Defines the range of unicode characters the font supports. Default value is "U+0-10FFFF"
- Since:
- 1.1.2
-
getCssName
- Returns:
- the name portion in style, eg
align-content
for stylealign-content: center
.
-
getCssValue
- Returns:
- the value portion in style, eg
center
for stylealign-content: center
.
-
toString
-
setCssValue
- Specified by:
setCssValue
in classAbstractCssProperty<UnicodeRange>
- Parameters:
cssValue
- The value should be a unicodeChars sequence.- Returns:
- the current object.
- Since:
- 1.1.2
-
setUnicodeChars
Eg:- String[] unicodeChars = {"U+0400-045F", "U+0490-0491", "U+04B0-04B1", "U+2116"};
- Parameters:
unicodeChars
- the unicodeChars to set- Since:
- 1.1.2
-
getUnicodeChars
gets the unicodeChars as an array and if here is no value set then returns an empty array.Note: it will never return null.
- Returns:
- the unicodeChars. If there is no unicodeChars set then returns an empty array instead of null.
- Since:
- 1.1.2
-