Class CellImpl

    • Constructor Detail

      • CellImpl

        public CellImpl​(org.jruby.runtime.builtin.IRubyObject rubyNode)
    • Method Detail

      • getColspan

        public int getColspan()
        Specified by:
        getColspan in interface Cell
      • getRowspan

        public int getRowspan()
        Specified by:
        getRowspan in interface Cell
      • getText

        public java.lang.String getText()
        Specified by:
        getText in interface Cell
        Returns:
        The text of the cell including substitutions being applied.
      • getSource

        public java.lang.String getSource()
        Specified by:
        getSource in interface Cell
        Returns:
        The text of the cell without substitutions being applied.
      • setSource

        public void setSource​(java.lang.String source)
        Description copied from interface: Cell
        Sets the source of the Cell.
        Specified by:
        setSource in interface Cell
        Parameters:
        source - The source of this Cell, substitutions will still be applied.
      • getContent

        public java.lang.Object getContent()
        Specified by:
        getContent in interface Cell
      • getStyle

        public java.lang.String getStyle()
        Description copied from interface: Cell
        Returns the style of this cell. The default is null. Possible values are:
        • null
        • "strong"
        • "emphasis"
        • "monospaced"
        • "header"
        • "literal"
        • "verse"
        • "asciidoc"
        Specified by:
        getStyle in interface Cell
        Returns:
        The style of this cell.
      • setStyle

        public void setStyle​(java.lang.String style)
        Description copied from interface: Cell
        Sets the style of this cell.
        Specified by:
        setStyle in interface Cell
        Parameters:
        style - Values like asciidoc, verse, literalor header.
        See Also:
        Cell.getStyle()
      • getHorizontalAlignment

        public Table.HorizontalAlignment getHorizontalAlignment()
        Description copied from interface: Cell
        Returns the horizonzal alignment of this cell.
        Specified by:
        getHorizontalAlignment in interface Cell
        Returns:
        a constant representing the horizontal alignment.
      • getVerticalAlignment

        public Table.VerticalAlignment getVerticalAlignment()
        Description copied from interface: Cell
        Returns the vertical alignment of this cell.
        Specified by:
        getVerticalAlignment in interface Cell
        Returns:
        a constant representing the vertical alignment.
      • getInnerDocument

        public Document getInnerDocument()
        Description copied from interface: Cell
        If the style of a cell is asciidoc the content of the cell is an inner document. This method returns this inner document.
        Specified by:
        getInnerDocument in interface Cell
        Returns:
        The inner document if the cell style is asciidoc