Class PageBreak
- java.lang.Object
-
- com.cloudofficeprint.RenderElements.RenderElement
-
- com.cloudofficeprint.RenderElements.PageBreak
-
public class PageBreak extends RenderElement
Only supported in Word and Excel. Represents an object that indicates to put a break in the template or not.
-
-
Constructor Summary
Constructors Constructor Description PageBreak(java.lang.String name, java.lang.String value)
Represents an object that indicates to put a break in the template or not.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gson.JsonObject
getJSON()
java.util.Set<java.lang.String>
getTemplateTags()
-
Methods inherited from class com.cloudofficeprint.RenderElements.RenderElement
getName, getValue, setName, setValue
-
-
-
-
Constructor Detail
-
PageBreak
public PageBreak(java.lang.String name, java.lang.String value)
Represents an object that indicates to put a break in the template or not.- Parameters:
name
- Name of this break for the tag.value
- Value should be set to 'page' or 'pagebreak' for PageBreak, 'column' or 'columnbreak' for column breaks, if set to true it will create a pagebreak.
-
-
Method Detail
-
getJSON
public com.google.gson.JsonObject getJSON()
- Specified by:
getJSON
in classRenderElement
- Returns:
- JSONObject with the tags for this element 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.
-
-