Package org.asciidoctor.ast
Interface Cell
- All Superinterfaces:
ContentNode
- All Known Implementing Classes:
CellImpl
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the horizonzal alignment of this cell.If the style of a cell isasciidocthe content of the cell is an inner document.intgetStyle()Returns the style of this cell.getText()Returns the vertical alignment of this cell.voidSets the horizontal alignment of this cell.voidsetInnerDocument(Document document) voidSets the source of the Cell.voidSets the style of this cell.voidSets the vertical alignment of this cell.Methods inherited from interface org.asciidoctor.ast.ContentNode
addRole, context, document, getAttr, getAttr, getAttr, getAttribute, getAttribute, getAttribute, getAttributes, getContext, getDocument, getId, getNodeName, getParent, getReftext, getRole, getRoles, hasAttr, hasAttr, hasAttribute, hasAttribute, hasRole, iconUri, id, imageUri, imageUri, isAttr, isAttr, isAttribute, isAttribute, isBlock, isInline, isOption, isReftext, isRole, mediaUri, normalizeWebPath, parent, readAsset, removeRole, role, setAttr, setAttribute, setId
-
Method Details
-
getColumn
Column getColumn() -
getColspan
int getColspan() -
getRowspan
int getRowspan() -
getText
String getText()- Returns:
- The text of the cell including substitutions being applied.
-
getSource
String getSource()- Returns:
- The text of the cell without substitutions being applied.
-
setSource
Sets the source of the Cell.- Parameters:
source- The source of this Cell, substitutions will still be applied.
-
getContent
Object getContent() -
getStyle
String getStyle()Returns the style of this cell. The default isnull. Possible values are:null"strong""emphasis""monospaced""header""literal""verse""asciidoc"
- Returns:
- The style of this cell.
-
setStyle
Sets the style of this cell.- Parameters:
style- Values likeasciidoc,verse,literalorheader.- See Also:
-
getHorizontalAlignment
Table.HorizontalAlignment getHorizontalAlignment()Returns the horizonzal alignment of this cell.- Returns:
- a constant representing the horizontal alignment.
-
setHorizontalAlignment
Sets the horizontal alignment of this cell.- Parameters:
halign- EitherTable.HorizontalAlignment.LEFT,Table.HorizontalAlignment.CENTERorTable.HorizontalAlignment.RIGHT
-
getVerticalAlignment
Table.VerticalAlignment getVerticalAlignment()Returns the vertical alignment of this cell.- Returns:
- a constant representing the vertical alignment.
-
setVerticalAlignment
Sets the vertical alignment of this cell.- Parameters:
valign- EitherTable.VerticalAlignment.TOP,Table.VerticalAlignment.MIDDLEorTable.VerticalAlignment.BOTTOM
-
getInnerDocument
Document getInnerDocument()If the style of a cell isasciidocthe content of the cell is an inner document. This method returns this inner document.- Returns:
- The inner document if the cell style is
asciidoc
-
setInnerDocument
- See Also:
-