Class BorderPropertyBuilders.BorderSidePropertyBuilder
- java.lang.Object
-
- com.openhtmltopdf.css.parser.property.AbstractPropertyBuilder
-
- com.openhtmltopdf.css.parser.property.BorderPropertyBuilders.BorderSidePropertyBuilder
-
- All Implemented Interfaces:
PropertyBuilder
- Direct Known Subclasses:
BorderPropertyBuilders.Border
,BorderPropertyBuilders.BorderBottom
,BorderPropertyBuilders.BorderLeft
,BorderPropertyBuilders.BorderRight
,BorderPropertyBuilders.BorderTop
- Enclosing class:
- BorderPropertyBuilders
private abstract static class BorderPropertyBuilders.BorderSidePropertyBuilder extends AbstractPropertyBuilder
-
-
Constructor Summary
Constructors Modifier Constructor Description private
BorderSidePropertyBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private void
addAll(java.util.List<PropertyDeclaration> result, CSSName[] properties, CSSPrimitiveValue value, int origin, boolean important)
java.util.List<PropertyDeclaration>
buildDeclarations(CSSName cssName, java.util.List<PropertyValue> values, int origin, boolean important, boolean inheritAllowed)
Builds a list ofPropertyDeclaration
objects for the CSS propertycssName
.private CSSPrimitiveValue
convertToBorderColor(CSSPrimitiveValue value)
private CSSPrimitiveValue
convertToBorderWidth(CSSPrimitiveValue value)
protected abstract CSSName[][]
getProperties()
private boolean
isBorderStyle(CSSPrimitiveValue value)
-
Methods inherited from class com.openhtmltopdf.css.parser.property.AbstractPropertyBuilder
buildDeclarations, checkAngleType, checkForbidInherit, checkIdent, checkIdentLengthNumberOrPercentType, checkIdentLengthOrPercentType, checkIdentOrColorType, checkIdentOrIntegerType, checkIdentOrLengthType, checkIdentOrNumberType, checkIdentOrString, checkIdentOrURIType, checkIdentType, checkInheritAll, checkInheritAllowed, checkInteger, checkLengthOrPercentType, checkLengthType, checkNumberType, checkValidity, checkValueCount, checkValueCount, copyOf, isLength, isLengthHelper
-
-
-
-
Method Detail
-
getProperties
protected abstract CSSName[][] getProperties()
-
addAll
private void addAll(java.util.List<PropertyDeclaration> result, CSSName[] properties, CSSPrimitiveValue value, int origin, boolean important)
-
buildDeclarations
public java.util.List<PropertyDeclaration> buildDeclarations(CSSName cssName, java.util.List<PropertyValue> values, int origin, boolean important, boolean inheritAllowed)
Description copied from interface:PropertyBuilder
Builds a list ofPropertyDeclaration
objects for the CSS propertycssName
.values
must containCSSPrimitiveValue
objects.
-
isBorderStyle
private boolean isBorderStyle(CSSPrimitiveValue value)
-
convertToBorderWidth
private CSSPrimitiveValue convertToBorderWidth(CSSPrimitiveValue value)
-
convertToBorderColor
private CSSPrimitiveValue convertToBorderColor(CSSPrimitiveValue value)
-
-