Class TableCell


  • public class TableCell
    extends RenderElement
    Only supported in Word, Excel, Powerpoint templates (they all have tables with cells). Represents a cell element. It includes the name for the tag, the value and optionally the cell background color and width.
    • Constructor Detail

      • TableCell

        public TableCell​(java.lang.String name,
                         java.lang.String value,
                         CellStyle cellStyle)
        Represents a cell element. It includes the name for the tag, the value and optionally the cell style.
        Parameters:
        name - Name of this element (for the tempalteTag).
        value - Value that will replace the tag.
        cellStyle - The style of the cell. (optional)
    • Method Detail

      • getCellStyle

        public CellStyle getCellStyle()
        Returns:
        Style of the cell.
      • setCellStyle

        public void setCellStyle​(CellStyle cellStyle)
        Parameters:
        cellStyle - Style of the cell.
      • getJSON

        public com.google.gson.JsonObject getJSON()
        Specified by:
        getJSON in class RenderElement
        Returns:
        JSONObject with the tags for this tableCell for the Cloud Office Print server.
      • getTemplateTags

        public java.util.Set<java.lang.String> getTemplateTags()
        Specified by:
        getTemplateTags in class RenderElement
        Returns:
        An immutable set containing all available template tags this element can replace.