Class CellSpan
- java.lang.Object
-
- com.cloudofficeprint.RenderElements.RenderElement
-
- com.cloudofficeprint.RenderElements.CellSpan
-
public class CellSpan extends RenderElement
Only available for Excel and HTML templates. This element allows you to specify the columns and rows to span for this cell. The tag in the cell of the template will be replaced by the value.
-
-
Constructor Summary
Constructors Constructor Description CellSpan(java.lang.String name, java.lang.String value, int columns, int rows)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumns()
com.google.gson.JsonObject
getJSON()
int
getRows()
java.util.Set<java.lang.String>
getTemplateTags()
void
setColumns(int columns)
void
setRows(int rows)
-
Methods inherited from class com.cloudofficeprint.RenderElements.RenderElement
getName, getValue, setName, setValue
-
-
-
-
Method Detail
-
getColumns
public int getColumns()
- Returns:
- Columns to span by cell.
-
setColumns
public void setColumns(int columns)
- Parameters:
columns
- Columns to span by cell.
-
getRows
public int getRows()
- Returns:
- Rows to span by cell.
-
setRows
public void setRows(int rows)
- Parameters:
rows
- Rows to span by cell.
-
getJSON
public com.google.gson.JsonObject getJSON()
- Specified by:
getJSON
in classRenderElement
- Returns:
- JSONObject with the tags for this property 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.
-
-