Package org.loboevolution.html.style
Class HtmlValues
java.lang.Object
org.loboevolution.html.style.HtmlValues
- Direct Known Subclasses:
FontValues
HtmlValues class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ListStylegetListStyle(String listStyleText) getListStyle.static ImagegetListStyleImage(String token) getListStyleImage.static ListValuesgetListStylePosition(String token) getListStylePosition.static ListValuesgetListStyleType(String token) getListStyleType.static intgetPixelSize(String spec, RenderState renderState, Window window, int errorValue) getPixelSize.static IntegergetPixelSize(String spec, RenderState renderState, Window window, Integer errorValue, Integer availSize) getPixelSize.static booleanisBackgroundAttachment(String token) isBackgroundPosition.static booleanisBackgroundPosition(String token) isBackgroundPosition.static booleanisBackgroundRepeat(String repeat) isBackgroundRepeat.static booleanisBorderStyle(String token) isBorderStyle.static booleanisGradient(String token) isGradient.static booleanstatic booleanisUrl.static StringquoteAndEscape(String text) quoteAndEscape.static intresolutionValue(CSSValueImpl cssValue) resolutionValue.static String[]splitCssValue(String cssValue) splitCssValue.static StringunquoteAndUnescape(String text) unquoteAndUnescape.
-
Constructor Details
-
HtmlValues
public HtmlValues()
-
-
Method Details
-
getListStyle
getListStyle.
-
getListStyleImage
getListStyleImage.
-
getListStylePosition
getListStylePosition.
- Parameters:
token- aStringobject.- Returns:
- a
ListValuesobject.
-
getListStyleType
getListStyleType.
- Parameters:
token- aStringobject.- Returns:
- a
ListValuesobject.
-
getPixelSize
getPixelSize.
- Parameters:
spec- aStringobject.renderState- aRenderStateobject.errorValue- aIntegerobject.- Returns:
- a
Integerobject.
-
getPixelSize
public static Integer getPixelSize(String spec, RenderState renderState, Window window, Integer errorValue, Integer availSize) getPixelSize.
- Parameters:
spec- aStringobject.renderState- aRenderStateobject.errorValue- aIntegerobject.availSize- aIntegerobject.- Returns:
- a
Integerobject.
-
resolutionValue
resolutionValue.
- Parameters:
cssValue- aCSSValueImplobject.- Returns:
- a
Integerobject.
-
isBackgroundPosition
isBackgroundPosition.
- Parameters:
token- aStringobject.- Returns:
- a boolean.
-
isBackgroundAttachment
isBackgroundPosition.
- Parameters:
token- aStringobject.- Returns:
- a boolean.
-
isBackgroundRepeat
isBackgroundRepeat.
- Parameters:
repeat- aStringobject.- Returns:
- a boolean.
-
isBorderStyle
isBorderStyle.
- Parameters:
token- aStringobject.- Returns:
- a boolean.
-
isUrl
isUrl.
- Parameters:
token- aStringobject.- Returns:
- a boolean.
-
isGradient
isGradient.
- Parameters:
token- aStringobject.- Returns:
- a boolean.
-
quoteAndEscape
quoteAndEscape.
-
splitCssValue
splitCssValue.
-
unquoteAndUnescape
unquoteAndUnescape.
-
isUnits
-