Package com.itextpdf.tool.xml.css.apply
Class HtmlCellCssApplier
- java.lang.Object
-
- com.itextpdf.tool.xml.css.apply.HtmlCellCssApplier
-
- All Implemented Interfaces:
CssApplier<HtmlCell>
public class HtmlCellCssApplier extends java.lang.Object implements CssApplier<HtmlCell>
-
-
Constructor Summary
Constructors Constructor Description HtmlCellCssApplier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HtmlCell
apply(HtmlCell cell, Tag t, MarginMemory memory, PageSizeContainable psc)
Applies css to a HtmlCellHtmlCell
apply(HtmlCell cell, Tag t, MarginMemory memory, PageSizeContainable psc, HtmlPipelineContext ctx)
Styles an elementprivate void
setBottomOfBorder(HtmlCell cell, java.lang.String key, java.lang.String value, TableStyleValues values)
private void
setLeftOfBorder(HtmlCell cell, java.lang.String key, java.lang.String value, TableStyleValues values)
private void
setRightOfBorder(HtmlCell cell, java.lang.String key, java.lang.String value, TableStyleValues values)
private void
setTopOfBorder(HtmlCell cell, java.lang.String key, java.lang.String value, TableStyleValues values)
-
-
-
Field Detail
-
utils
private final CssUtils utils
-
-
Method Detail
-
apply
public HtmlCell apply(HtmlCell cell, Tag t, MarginMemory memory, PageSizeContainable psc)
Applies css to a HtmlCell- Parameters:
cell
- the HtmlCellt
- the tag with the stylesmemory
- current margin memorypsc
- thePageSize
container- Returns:
- a styled HtmlCell
-
apply
public HtmlCell apply(HtmlCell cell, Tag t, MarginMemory memory, PageSizeContainable psc, HtmlPipelineContext ctx)
Description copied from interface:CssApplier
Styles an element- Specified by:
apply
in interfaceCssApplier<HtmlCell>
- Parameters:
cell
- the elementt
- the tagmemory
- the MarginMemorypsc
- the PageSizeContainablectx
- the HtmlPipelineContext- Returns:
- a styled
Paragraph
-
setTopOfBorder
private void setTopOfBorder(HtmlCell cell, java.lang.String key, java.lang.String value, TableStyleValues values)
-
setBottomOfBorder
private void setBottomOfBorder(HtmlCell cell, java.lang.String key, java.lang.String value, TableStyleValues values)
-
setLeftOfBorder
private void setLeftOfBorder(HtmlCell cell, java.lang.String key, java.lang.String value, TableStyleValues values)
-
setRightOfBorder
private void setRightOfBorder(HtmlCell cell, java.lang.String key, java.lang.String value, TableStyleValues values)
-
-