Class CssPageMarginBoxSelector
- java.lang.Object
-
- com.itextpdf.styledxmlparser.css.selector.CssPageMarginBoxSelector
-
- All Implemented Interfaces:
ICssSelector
public class CssPageMarginBoxSelector extends java.lang.Object implements ICssSelector
ICssSelector
implementation for CSS page margin box selectors.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
pageMarginBoxName
The page margin box name.private ICssSelector
pageSelector
The page selector.
-
Constructor Summary
Constructors Constructor Description CssPageMarginBoxSelector(java.lang.String pageMarginBoxName, ICssSelector pageSelector)
Creates a newCssPageMarginBoxSelector
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
calculateSpecificity()
Calculates the specificity.boolean
matches(INode node)
Checks if a node matches the selector.
-
-
-
Field Detail
-
pageMarginBoxName
private java.lang.String pageMarginBoxName
The page margin box name.
-
pageSelector
private ICssSelector pageSelector
The page selector.
-
-
Constructor Detail
-
CssPageMarginBoxSelector
public CssPageMarginBoxSelector(java.lang.String pageMarginBoxName, ICssSelector pageSelector)
Creates a newCssPageMarginBoxSelector
instance.- Parameters:
pageMarginBoxName
- the page margin box namepageSelector
- the page selector
-
-
Method Detail
-
calculateSpecificity
public int calculateSpecificity()
Description copied from interface:ICssSelector
Calculates the specificity.- Specified by:
calculateSpecificity
in interfaceICssSelector
- Returns:
- the specificity
-
matches
public boolean matches(INode node)
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
-
-