Class PlaceItemsShorthandResolver
java.lang.Object
com.itextpdf.styledxmlparser.css.resolve.shorthand.impl.PlaceItemsShorthandResolver
- All Implemented Interfaces:
IShorthandResolver
IShorthandResolver implementation for place-items.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static List<CssDeclaration> handleExpressionError(String logMessage, String attribute, String shorthandExpression) private List<CssDeclaration> resolveAlignItemsAndJustifyItems(String alignItems, String justifyItems) resolveShorthand(String shorthandExpression) Resolves a shorthand expression.private List<CssDeclaration> resolveShorthandWithFourWords(String firstWord, String secondWord, String thirdWord, String fourthWord) private List<CssDeclaration> resolveShorthandWithOneWord(String firstWord) private List<CssDeclaration> resolveShorthandWithThreeWords(String firstWord, String secondWord, String thirdWord) private List<CssDeclaration> resolveShorthandWithTwoWords(String firstWord, String secondWord)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
PlaceItemsShorthandResolver
public PlaceItemsShorthandResolver()
-
-
Method Details
-
resolveShorthand
Resolves a shorthand expression.- Specified by:
resolveShorthandin interfaceIShorthandResolver- Parameters:
shorthandExpression- the shorthand expression- Returns:
- a list of CSS declaration
-
resolveShorthandWithOneWord
-
resolveShorthandWithTwoWords
-
resolveShorthandWithThreeWords
private List<CssDeclaration> resolveShorthandWithThreeWords(String firstWord, String secondWord, String thirdWord) -
resolveShorthandWithFourWords
-
resolveAlignItemsAndJustifyItems
private List<CssDeclaration> resolveAlignItemsAndJustifyItems(String alignItems, String justifyItems) -
handleExpressionError
private static List<CssDeclaration> handleExpressionError(String logMessage, String attribute, String shorthandExpression)
-