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 int
getColumnNumber()
Table.HorizontalAlignment
getHorizontalAlignment()
Returns the horizonzal alignment of all cells in this column.java.lang.String
getStyle()
Returns the style of this column.Table
getTable()
Table.VerticalAlignment
getVerticalAlignment()
Returns the vertical alignment of all cells in this column.int
getWidth()
void
setHorizontalAlignment(Table.HorizontalAlignment halign)
Sets the horizontal alignment of all cells of this column.void
setStyle(java.lang.String style)
Sets the style of this column.void
setVerticalAlignment(Table.VerticalAlignment valign)
Sets the vertical alignment of all cells of this column.void
setWidth(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, 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, setId
-
-
-
-
Method Detail
-
getStyle
public java.lang.String getStyle()
Description copied from interface:Column
Returns 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:Column
Sets the style of this column.- Specified by:
setStyle
in interfaceColumn
- Parameters:
style
- Values likeasciidoc
,verse
,literal
orheader
.- See Also:
Column.getStyle()
-
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumber
in interfaceColumn
-
getHorizontalAlignment
public Table.HorizontalAlignment getHorizontalAlignment()
Description copied from interface:Column
Returns the horizonzal alignment of all cells in this column.- Specified by:
getHorizontalAlignment
in interfaceColumn
- Returns:
- a constant representing the horizontal alignment.
-
setHorizontalAlignment
public void setHorizontalAlignment(Table.HorizontalAlignment halign)
Description copied from interface:Column
Sets the horizontal alignment of all cells of this column.- Specified by:
setHorizontalAlignment
in interfaceColumn
- Parameters:
halign
- EitherTable.HorizontalAlignment.LEFT
,Table.HorizontalAlignment.CENTER
orTable.HorizontalAlignment.RIGHT
-
getVerticalAlignment
public Table.VerticalAlignment getVerticalAlignment()
Description copied from interface:Column
Returns the vertical alignment of all cells in this column.- Specified by:
getVerticalAlignment
in interfaceColumn
- Returns:
- a constant representing the vertical alignment.
-
setVerticalAlignment
public void setVerticalAlignment(Table.VerticalAlignment valign)
Description copied from interface:Column
Sets the vertical alignment of all cells of this column.- Specified by:
setVerticalAlignment
in interfaceColumn
- Parameters:
valign
- EitherTable.VerticalAlignment.TOP
,Table.VerticalAlignment.MIDDLE
orTable.VerticalAlignment.BOTTOM
-
-