Class TableCell
- java.lang.Object
-
- com.cloudofficeprint.RenderElements.RenderElement
-
- com.cloudofficeprint.RenderElements.Cells.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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CellStyle
getCellStyle()
com.google.gson.JsonObject
getJSON()
java.util.Set<java.lang.String>
getTemplateTags()
void
setCellStyle(CellStyle cellStyle)
-
Methods inherited from class com.cloudofficeprint.RenderElements.RenderElement
getName, getValue, setName, setValue
-
-
-
-
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 classRenderElement
- 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 classRenderElement
- Returns:
- An immutable set containing all available template tags this element can replace.
-
-