- java.lang.Object
-
- org.commonmark.node.Node
-
- org.commonmark.node.CustomNode
-
- org.commonmark.ext.gfm.tables.TableCell
-
public class TableCell extends CustomNode
Table cell of aTableRowcontaining inline nodes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTableCell.AlignmentHow the cell is aligned horizontally.
-
Constructor Summary
Constructors Constructor Description TableCell()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TableCell.AlignmentgetAlignment()intgetWidth()booleanisHeader()voidsetAlignment(TableCell.Alignment alignment)voidsetHeader(boolean header)voidsetWidth(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
-
-
-
-
Method Detail
-
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
nullif 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)
-
-