Class ColgroupWrapper

java.lang.Object
com.itextpdf.html2pdf.attach.wrapelement.ColgroupWrapper
All Implemented Interfaces:
IWrapElement

public class ColgroupWrapper extends Object implements IWrapElement
Wrapper for the colgroup element.
  • Constructor Details

    • ColgroupWrapper

      public ColgroupWrapper (int span)
      Creates a new ColgroupWrapper instance.
      Parameters:
      span - the span
  • Method Details

    • getSpan

      public int getSpan()
      Gets the span.
      Returns:
      the span
    • getWidth

      public com.itextpdf.layout.properties.UnitValue getWidth()
      Gets the width.
      Returns:
      the width
    • setWidth

      public ColgroupWrapper setWidth (com.itextpdf.layout.properties.UnitValue width)
      Sets the width.
      Parameters:
      width - the width
      Returns:
      this ColgroupWrapper instance
    • getCellCssProps

      public Map<String,String> getCellCssProps()
      Gets the cell CSS properties.
      Returns:
      the cell CSS properties
    • setCellCssProps

      public ColgroupWrapper setCellCssProps (Map<String,String> cellCssProps)
      Sets the cell CSS properties.
      Parameters:
      cellCssProps - the cell CSS properties
      Returns:
      this ColgroupWrapper instance
    • getOwnCssProps

      public Map<String,String> getOwnCssProps()
      Gets the own CSS properties.
      Returns:
      the own CSS properties
    • setOwnCssProps

      public ColgroupWrapper setOwnCssProps (Map<String,String> ownCssProps)
      Sets the own CSS properties.
      Parameters:
      ownCssProps - the own CSS properties
      Returns:
      this ColgroupWrapper instance
    • getColumns

      public List<ColWrapper> getColumns()
      Gets the columns.
      Returns:
      the columns
    • finalizeCols

      public ColgroupWrapper finalizeCols()
      Finalize the columns.
      Returns:
      this ColgroupWrapper instance
    • getColumnByIndex

      public ColWrapper getColumnByIndex (int index)
      Gets the column by index.
      Parameters:
      index - the index
      Returns:
      the column corresponding with the index
    • setLang

      public void setLang (String lang)
      Sets the language attribute.
      Parameters:
      lang - the lang attribute
    • getLang

      public String getLang()
      Gets the language attribute.
      Returns:
      the lang attribute