public class CellImpl extends ContentNodeImpl implements Cell
rubyNode, runtime
Constructor and Description |
---|
CellImpl(org.jruby.runtime.builtin.IRubyObject rubyNode) |
Modifier and Type | Method and Description |
---|---|
int |
getColspan() |
Column |
getColumn() |
java.lang.Object |
getContent() |
Table.HorizontalAlignment |
getHorizontalAlignment()
Returns the horizonzal alignment of this cell.
|
Document |
getInnerDocument()
If the style of a cell is
asciidoc the content of the cell is an inner document. |
int |
getRowspan() |
java.lang.String |
getSource() |
java.lang.String |
getStyle()
Returns the style of this cell.
|
java.lang.String |
getText() |
Table.VerticalAlignment |
getVerticalAlignment()
Returns the vertical alignment of this cell.
|
void |
setHorizontalAlignment(Table.HorizontalAlignment halign)
Sets the horizontal alignment of this cell.
|
void |
setInnerDocument(Document document) |
void |
setSource(java.lang.String source)
Sets the source of the Cell.
|
void |
setStyle(java.lang.String style)
Sets the style of this cell.
|
void |
setVerticalAlignment(Table.VerticalAlignment valign)
Sets the vertical alignment of this cell.
|
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
getBoolean, getInt, getList, getProperty, getRubyObject, getRubyProperty, getRuntime, getString, getSymbol, setBoolean, setInt, setRubyProperty, setString, setSymbol, toJava, toJava
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public int getColspan()
getColspan
in interface Cell
public int getRowspan()
getRowspan
in interface Cell
public java.lang.String getText()
public java.lang.String getSource()
public void setSource(java.lang.String source)
Cell
public java.lang.Object getContent()
getContent
in interface Cell
public java.lang.String getStyle()
Cell
null
.
Possible values are:
null
"strong"
"emphasis"
"monospaced"
"header"
"literal"
"verse"
"asciidoc"
public void setStyle(java.lang.String style)
Cell
setStyle
in interface Cell
style
- Values like asciidoc
, verse
, literal
or header
.Cell.getStyle()
public Table.HorizontalAlignment getHorizontalAlignment()
Cell
getHorizontalAlignment
in interface Cell
public void setHorizontalAlignment(Table.HorizontalAlignment halign)
Cell
setHorizontalAlignment
in interface Cell
halign
- Either Table.HorizontalAlignment.LEFT
, Table.HorizontalAlignment.CENTER
or Table.HorizontalAlignment.RIGHT
public Table.VerticalAlignment getVerticalAlignment()
Cell
getVerticalAlignment
in interface Cell
public void setVerticalAlignment(Table.VerticalAlignment valign)
Cell
setVerticalAlignment
in interface Cell
valign
- Either Table.VerticalAlignment.TOP
, Table.VerticalAlignment.MIDDLE
or Table.VerticalAlignment.BOTTOM
public Document getInnerDocument()
Cell
asciidoc
the content of the cell is an inner document.
This method returns this inner document.getInnerDocument
in interface Cell
asciidoc
public void setInnerDocument(Document document)
setInnerDocument
in interface Cell
Cell.getInnerDocument()