Package org.asciidoctor.ast
Interface Column
- All Superinterfaces:
ContentNode
- All Known Implementing Classes:
ColumnImpl
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the horizonzal alignment of all cells in this column.getStyle()Returns the style of this column.getTable()Returns the vertical alignment of all cells in this column.intgetWidth()voidSets the horizontal alignment of all cells of this column.voidSets the style of this column.voidSets the vertical alignment of all cells of this column.voidsetWidth(int width) 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
-
getStyle
String getStyle()Returns the style of this column. 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 column.- Parameters:
style- Values likeasciidoc,verse,literalorheader.- See Also:
-
getTable
Table getTable() -
getColumnNumber
int getColumnNumber() -
getWidth
int getWidth() -
setWidth
void setWidth(int width) -
getHorizontalAlignment
Table.HorizontalAlignment getHorizontalAlignment()Returns the horizonzal alignment of all cells in this column.- Returns:
- a constant representing the horizontal alignment.
-
setHorizontalAlignment
Sets the horizontal alignment of all cells of this column.- Parameters:
halign- EitherTable.HorizontalAlignment.LEFT,Table.HorizontalAlignment.CENTERorTable.HorizontalAlignment.RIGHT
-
getVerticalAlignment
Table.VerticalAlignment getVerticalAlignment()Returns the vertical alignment of all cells in this column.- Returns:
- a constant representing the vertical alignment.
-
setVerticalAlignment
Sets the vertical alignment of all cells of this column.- Parameters:
valign- EitherTable.VerticalAlignment.TOP,Table.VerticalAlignment.MIDDLEorTable.VerticalAlignment.BOTTOM
-