org.commonmark.ext.gfm.tables.TableCell Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commonmark-ext-gfm-tables Show documentation
Show all versions of commonmark-ext-gfm-tables Show documentation
commonmark-java extension for GFM tables using "|" pipes (GitHub Flavored Markdown)
package org.commonmark.ext.gfm.tables;
import org.commonmark.node.CustomNode;
/**
* Table cell of a {@link TableRow} containing inline nodes.
*/
public class TableCell extends CustomNode {
private boolean header;
private Alignment alignment;
/**
* @return whether the cell is a header or not
*/
public boolean isHeader() {
return header;
}
public void setHeader(boolean header) {
this.header = header;
}
/**
* @return the cell alignment
*/
public Alignment getAlignment() {
return alignment;
}
public void setAlignment(Alignment alignment) {
this.alignment = alignment;
}
/**
* How the cell is aligned horizontally.
*/
public enum Alignment {
LEFT, CENTER, RIGHT
}
}