Class TableCell
java.lang.Object
org.commonmark.node.Node
org.commonmark.node.CustomNode
org.commonmark.ext.gfm.tables.TableCell
Table cell of a
TableRow containing inline nodes.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHow the cell is aligned horizontally. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetWidth()booleanisHeader()voidsetAlignment(TableCell.Alignment alignment) voidsetHeader(boolean header) voidsetWidth(int width) Methods inherited from class CustomNode
acceptMethods inherited from class Node
addSourceSpan, appendChild, getFirstChild, getLastChild, getNext, getParent, getPrevious, getSourceSpans, insertAfter, insertBefore, prependChild, setParent, setSourceSpans, toString, toStringAttributes, unlink
-
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
- Returns:
- the cell alignment or
nullif no specific alignment
-
setAlignment
-
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)
-