Class TableCell

java.lang.Object
org.commonmark.node.Node
org.commonmark.node.CustomNode
org.commonmark.ext.gfm.tables.TableCell

public class TableCell extends org.commonmark.node.CustomNode
Table cell of a TableRow containing inline nodes.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    How the cell is aligned horizontally.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    int
     
    boolean
     
    void
     
    void
    setHeader(boolean header)
     
    void
    setWidth(int width)
     

    Methods inherited from class org.commonmark.node.CustomNode

    accept

    Methods inherited from class org.commonmark.node.Node

    addSourceSpan, appendChild, getFirstChild, getLastChild, getNext, getParent, getPrevious, getSourceSpans, insertAfter, insertBefore, prependChild, setParent, setSourceSpans, toString, toStringAttributes, unlink

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TableCell

      public TableCell()
  • Method Details

    • isHeader

      public boolean isHeader()
      Returns:
      whether the cell is a header or not
    • setHeader

      public void setHeader(boolean header)
    • getAlignment

      public TableCell.Alignment getAlignment()
      Returns:
      the cell alignment or null if no specific alignment
    • setAlignment

      public void setAlignment(TableCell.Alignment alignment)
    • getWidth

      public int getWidth()
      Returns:
      the cell width (the number of dash and colon characters in the delimiter row of the table for this column)
    • setWidth

      public void setWidth(int width)