Class CssPageMarginBoxSelector
java.lang.Object
com.itextpdf.styledxmlparser.css.selector.CssPageMarginBoxSelector
- All Implemented Interfaces:
ICssSelector
ICssSelector
implementation for CSS page margin box selectors.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The page margin box name.private ICssSelector
The page selector. -
Constructor Summary
ConstructorsConstructorDescriptionCssPageMarginBoxSelector
(String pageMarginBoxName, ICssSelector pageSelector) Creates a newCssPageMarginBoxSelector
instance. -
Method Summary
Modifier and TypeMethodDescriptionint
Calculates the specificity.boolean
Checks if a node matches the selector.
-
Field Details
-
pageMarginBoxName
The page margin box name. -
pageSelector
The page selector.
-
-
Constructor Details
-
CssPageMarginBoxSelector
Creates a newCssPageMarginBoxSelector
instance.- Parameters:
pageMarginBoxName
- the page margin box namepageSelector
- the page selector
-
-
Method Details
-
calculateSpecificity
public int calculateSpecificity()Description copied from interface:ICssSelector
Calculates the specificity.- Specified by:
calculateSpecificity
in interfaceICssSelector
- Returns:
- the specificity
-
matches
Description copied from interface:ICssSelector
Checks if a node matches the selector.- Specified by:
matches
in interfaceICssSelector
- Parameters:
node
- the node- Returns:
- true, if the selector is a match for the node
-