Class AbstractBoxShorthandResolver
java.lang.Object
com.itextpdf.styledxmlparser.css.resolve.shorthand.impl.AbstractBoxShorthandResolver
- All Implemented Interfaces:
IShorthandResolver
- Direct Known Subclasses:
BorderColorShorthandResolver
,BorderStyleShorthandResolver
,BorderWidthShorthandResolver
,MarginShorthandResolver
,PaddingShorthandResolver
Abstract
IShorthandResolver
implementation for box definitions.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
Gets the postfix of a property.protected abstract String
Gets the prefix of a property.resolveShorthand
(String shorthandExpression) Resolves a shorthand expression.
-
Field Details
-
_0_LEFT_1
The template for -left properties.- See Also:
-
_0_RIGHT_1
The template for -right properties.- See Also:
-
_0_BOTTOM_1
The template for -bottom properties.- See Also:
-
_0_TOP_1
The template for -top properties.- See Also:
-
-
Constructor Details
-
AbstractBoxShorthandResolver
public AbstractBoxShorthandResolver()
-
-
Method Details
-
getPrefix
Gets the prefix of a property.- Returns:
- the prefix
-
getPostfix
Gets the postfix of a property.- Returns:
- the postfix
-
resolveShorthand
Description copied from interface:IShorthandResolver
Resolves a shorthand expression.- Specified by:
resolveShorthand
in interfaceIShorthandResolver
- Parameters:
shorthandExpression
- the shorthand expression- Returns:
- a list of CSS declaration
-