APIdia Launch Partner
Top Description Inners Fields Constructors Methods
jdk.internal.org.commonmark.ext.gfm.tables

public Class TableCell

extends CustomNode
Class Inheritance
Imports
jdk.internal.org.commonmark.node.CustomNode

Table cell of a TableRow containing inline nodes.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
TableCell.Alignment

How the cell is aligned horizontally.

Field Summary

Modifier and TypeField and Description
private TableCell.Alignment
private boolean
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public TableCell.Alignment
getAlignment()

Returns: the cell alignment or null if no specific alignment

public int
getWidth()

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

public boolean
isHeader()

Returns: whether the cell is a header or not

public void
public void
setHeader(boolean header)

public void
setWidth(int width)

Inherited from jdk.internal.org.commonmark.node.CustomNode:
accept

Field Detail

alignmentback to summary
private TableCell.Alignment alignment
widthback to summary
private int width

Constructor Detail

TableCellback to summary
public TableCell()

Method Detail

getAlignmentback to summary
public TableCell.Alignment getAlignment()
Returns:TableCell.Alignment

the cell alignment or null if no specific alignment

getWidthback to summary
public int getWidth()
Returns:int

the cell width (the number of dash and colon characters in the delimiter row of the table for this column)

isHeaderback to summary
public boolean isHeader()
Returns:boolean

whether the cell is a header or not

setAlignmentback to summary
public void setAlignment(TableCell.Alignment alignment)
setHeaderback to summary
public void setHeader(boolean header)
setWidthback to summary
public void setWidth(int width)
jdk.internal.org.commonmark.ext.gfm.tables back to summary

public final Enum TableCell.Alignment

extends Enum<TableCell.Alignment>
Class Inheritance

How the cell is aligned horizontally.

Field Summary

Modifier and TypeField and Description
public static final TableCell.Alignment
public static final TableCell.Alignment
public static final TableCell.Alignment

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static TableCell.Alignment
public static TableCell.Alignment[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CENTERback to summary
public static final TableCell.Alignment CENTER
LEFTback to summary
public static final TableCell.Alignment LEFT
RIGHTback to summary
public static final TableCell.Alignment RIGHT

Constructor Detail

Alignmentback to summary
private Alignment()

Method Detail

valueOfback to summary
public static TableCell.Alignment valueOf(String name)
valuesback to summary
public static TableCell.Alignment[] values()