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
public abstract class AbstractBoxShorthandResolver extends java.lang.Object implements IShorthandResolver
AbstractIShorthandResolver
implementation for box definitions.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
_0_BOTTOM_1
The template for -bottom properties.private static java.lang.String
_0_LEFT_1
The template for -left properties.private static java.lang.String
_0_RIGHT_1
The template for -right properties.private static java.lang.String
_0_TOP_1
The template for -top properties.
-
Constructor Summary
Constructors Constructor Description AbstractBoxShorthandResolver()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.String
getPostfix()
Gets the postfix of a property.protected abstract java.lang.String
getPrefix()
Gets the prefix of a property.java.util.List<CssDeclaration>
resolveShorthand(java.lang.String shorthandExpression)
Resolves a shorthand expression.
-
-
-
Field Detail
-
_0_LEFT_1
private static final java.lang.String _0_LEFT_1
The template for -left properties.- See Also:
- Constant Field Values
-
_0_RIGHT_1
private static final java.lang.String _0_RIGHT_1
The template for -right properties.- See Also:
- Constant Field Values
-
_0_BOTTOM_1
private static final java.lang.String _0_BOTTOM_1
The template for -bottom properties.- See Also:
- Constant Field Values
-
_0_TOP_1
private static final java.lang.String _0_TOP_1
The template for -top properties.- See Also:
- Constant Field Values
-
-
Method Detail
-
getPrefix
protected abstract java.lang.String getPrefix()
Gets the prefix of a property.- Returns:
- the prefix
-
getPostfix
protected abstract java.lang.String getPostfix()
Gets the postfix of a property.- Returns:
- the postfix
-
resolveShorthand
public java.util.List<CssDeclaration> resolveShorthand(java.lang.String shorthandExpression)
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
-
-