Package org.asciidoctor.ast
Interface Column
-
- All Superinterfaces:
ContentNode
- All Known Implementing Classes:
ColumnImpl
public interface Column extends ContentNode
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetColumnNumber()Table.HorizontalAlignmentgetHorizontalAlignment()Returns the horizonzal alignment of all cells in this column.java.lang.StringgetStyle()Returns the style of this column.TablegetTable()Table.VerticalAlignmentgetVerticalAlignment()Returns the vertical alignment of all cells in this column.intgetWidth()voidsetHorizontalAlignment(Table.HorizontalAlignment halign)Sets the horizontal alignment of all cells of this column.voidsetStyle(java.lang.String style)Sets the style of this column.voidsetVerticalAlignment(Table.VerticalAlignment valign)Sets 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, setContext, setId
-
-
-
-
Method Detail
-
getStyle
java.lang.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
void setStyle(java.lang.String style)
Sets the style of this column.- Parameters:
style- Values likeasciidoc,verse,literalorheader.- See Also:
getStyle()
-
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
void setHorizontalAlignment(Table.HorizontalAlignment halign)
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
void setVerticalAlignment(Table.VerticalAlignment valign)
Sets the vertical alignment of all cells of this column.- Parameters:
valign- EitherTable.VerticalAlignment.TOP,Table.VerticalAlignment.MIDDLEorTable.VerticalAlignment.BOTTOM
-
-