Class CssPageMarginBoxSelector
java.lang.Object
com.itextpdf.styledxmlparser.css.selector.CssPageMarginBoxSelector
- All Implemented Interfaces:
-
ICssSelector
ICssSelector implementation for CSS page margin box selectors.
-
Constructor Summary
ConstructorsConstructorDescriptionCssPageMarginBoxSelector(String pageMarginBoxName, ICssSelector pageSelector) Creates a newCssPageMarginBoxSelectorinstance. -
Method Summary
Modifier and TypeMethodDescriptionintCalculates the specificity.booleanChecks if a node matches the selector.
-
Constructor Details
-
CssPageMarginBoxSelector
Creates a newCssPageMarginBoxSelectorinstance.- Parameters:
-
pageMarginBoxName- the page margin box name -
pageSelector- the page selector
-
-
Method Details
-
calculateSpecificity
public int calculateSpecificity()Description copied from interface:ICssSelectorCalculates the specificity.- Specified by:
-
calculateSpecificityin interfaceICssSelector - Returns:
- the specificity
-
matches
Description copied from interface:ICssSelectorChecks if a node matches the selector.- Specified by:
-
matchesin interfaceICssSelector - Parameters:
-
node- the node - Returns:
- true, if the selector is a match for the node
-