Package org.asciidoctor.jruby.ast.impl
Class ColumnImpl
- java.lang.Object
-
- org.asciidoctor.jruby.internal.RubyObjectWrapper
-
- org.asciidoctor.jruby.ast.impl.ContentNodeImpl
-
- org.asciidoctor.jruby.ast.impl.ColumnImpl
-
- All Implemented Interfaces:
Column,ContentNode
public class ColumnImpl extends ContentNodeImpl implements Column
-
-
Field Summary
-
Fields inherited from class org.asciidoctor.jruby.internal.RubyObjectWrapper
rubyNode, runtime
-
-
Constructor Summary
Constructors Constructor Description ColumnImpl(org.jruby.runtime.builtin.IRubyObject rubyNode)
-
Method Summary
All Methods Instance Methods Concrete 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 class org.asciidoctor.jruby.ast.impl.ContentNodeImpl
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
-
Methods inherited from class org.asciidoctor.jruby.internal.RubyObjectWrapper
getBoolean, getInt, getList, getProperty, getRubyObject, getRubyProperty, getRuntime, getString, getSymbol, setBoolean, setInt, setRubyProperty, setString, setSymbol, toJava, toJava
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
public java.lang.String getStyle()
Description copied from interface:ColumnReturns the style of this column. The default isnull. Possible values are:null"strong""emphasis""monospaced""header""literal""verse""asciidoc"
-
setStyle
public void setStyle(java.lang.String style)
Description copied from interface:ColumnSets the style of this column.- Specified by:
setStylein interfaceColumn- Parameters:
style- Values likeasciidoc,verse,literalorheader.- See Also:
Column.getStyle()
-
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumberin interfaceColumn
-
getHorizontalAlignment
public Table.HorizontalAlignment getHorizontalAlignment()
Description copied from interface:ColumnReturns the horizonzal alignment of all cells in this column.- Specified by:
getHorizontalAlignmentin interfaceColumn- Returns:
- a constant representing the horizontal alignment.
-
setHorizontalAlignment
public void setHorizontalAlignment(Table.HorizontalAlignment halign)
Description copied from interface:ColumnSets the horizontal alignment of all cells of this column.- Specified by:
setHorizontalAlignmentin interfaceColumn- Parameters:
halign- EitherTable.HorizontalAlignment.LEFT,Table.HorizontalAlignment.CENTERorTable.HorizontalAlignment.RIGHT
-
getVerticalAlignment
public Table.VerticalAlignment getVerticalAlignment()
Description copied from interface:ColumnReturns the vertical alignment of all cells in this column.- Specified by:
getVerticalAlignmentin interfaceColumn- Returns:
- a constant representing the vertical alignment.
-
setVerticalAlignment
public void setVerticalAlignment(Table.VerticalAlignment valign)
Description copied from interface:ColumnSets the vertical alignment of all cells of this column.- Specified by:
setVerticalAlignmentin interfaceColumn- Parameters:
valign- EitherTable.VerticalAlignment.TOP,Table.VerticalAlignment.MIDDLEorTable.VerticalAlignment.BOTTOM
-
-