Interface Cell

All Superinterfaces:
ContentNode
All Known Implementing Classes:
CellImpl

public interface Cell extends ContentNode
  • Method Details

    • getColumn

      Column getColumn()
    • getColspan

      int getColspan()
    • getRowspan

      int getRowspan()
    • getText

      String getText()
      Returns:
      The text of the cell including substitutions being applied.
    • getSource

      String getSource()
      Returns:
      The text of the cell without substitutions being applied.
    • setSource

      void setSource(String source)
      Sets the source of the Cell.
      Parameters:
      source - The source of this Cell, substitutions will still be applied.
    • getContent

      Object getContent()
    • getStyle

      String getStyle()
      Returns the style of this cell. The default is null. Possible values are:
      • null
      • "strong"
      • "emphasis"
      • "monospaced"
      • "header"
      • "literal"
      • "verse"
      • "asciidoc"
      Returns:
      The style of this cell.
    • setStyle

      void setStyle(String style)
      Sets the style of this cell.
      Parameters:
      style - Values like asciidoc, verse, literalor header.
      See Also:
    • getHorizontalAlignment

      Table.HorizontalAlignment getHorizontalAlignment()
      Returns the horizonzal alignment of this cell.
      Returns:
      a constant representing the horizontal alignment.
    • setHorizontalAlignment

      void setHorizontalAlignment(Table.HorizontalAlignment halign)
      Sets the horizontal alignment of this cell.
      Parameters:
      halign - Either Table.HorizontalAlignment.LEFT, Table.HorizontalAlignment.CENTER or Table.HorizontalAlignment.RIGHT
    • getVerticalAlignment

      Table.VerticalAlignment getVerticalAlignment()
      Returns the vertical alignment of this cell.
      Returns:
      a constant representing the vertical alignment.
    • setVerticalAlignment

      void setVerticalAlignment(Table.VerticalAlignment valign)
      Sets the vertical alignment of this cell.
      Parameters:
      valign - Either Table.VerticalAlignment.TOP, Table.VerticalAlignment.MIDDLE or Table.VerticalAlignment.BOTTOM
    • getInnerDocument

      Document getInnerDocument()
      If the style of a cell is asciidoc the content of the cell is an inner document. This method returns this inner document.
      Returns:
      The inner document if the cell style is asciidoc
    • setInnerDocument

      void setInnerDocument(Document document)
      See Also: