Class GapShorthandResolver
java.lang.Object
com.itextpdf.styledxmlparser.css.resolve.shorthand.impl.GapShorthandResolver
- All Implemented Interfaces:
IShorthandResolver
Shorthand resolver for gap shorthand properties, can be used for
different gap properties like
gap
or grid-gap
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates defaultGapShorthandResolver
forgap
shorthand.GapShorthandResolver
(String gapShorthandProperty) Instantiates defaultGapShorthandResolver
for passed gap shorthand. -
Method Summary
Modifier and TypeMethodDescriptionprivate static List
<CssDeclaration> handleExpressionError
(String logMessage, String attribute, String shorthandExpression) private List
<CssDeclaration> resolveGapWithTwoProperties
(String row, String column) resolveShorthand
(String shorthandExpression) Resolves a shorthand expression.
-
Field Details
-
gapShorthandProperty
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
GapShorthandResolver
public GapShorthandResolver()Instantiates defaultGapShorthandResolver
forgap
shorthand. -
GapShorthandResolver
Instantiates defaultGapShorthandResolver
for passed gap shorthand.- Parameters:
gapShorthandProperty
- the name of the gap shorthand property
-
-
Method Details
-
resolveShorthand
Resolves a shorthand expression.- Specified by:
resolveShorthand
in interfaceIShorthandResolver
- Parameters:
shorthandExpression
- the shorthand expression- Returns:
- a list of CSS declaration
-
resolveGapWithTwoProperties
-
handleExpressionError
private static List<CssDeclaration> handleExpressionError(String logMessage, String attribute, String shorthandExpression)
-