Class SheetLoop
- java.lang.Object
-
- com.cloudofficeprint.RenderElements.RenderElement
-
- com.cloudofficeprint.RenderElements.Loops.Loop
-
- com.cloudofficeprint.RenderElements.Loops.SheetLoop
-
public class SheetLoop extends Loop
Loop where a sheet will be repeated for each element of the loop. Only supported in Excel templates.
-
-
Constructor Summary
Constructors Constructor Description SheetLoop(java.lang.String name, RenderElement[] elements)
To repeat a sheet for each element of elements.SheetLoop(java.lang.String name, java.util.ArrayList<RenderElement> elements)
To repeat a sheet for each element of elements.SheetLoop(java.lang.String name, java.util.HashMap<java.lang.String,RenderElement> elements)
To repeat a sheet for each element of elements.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gson.JsonObject
getJSON()
java.util.ArrayList<java.lang.String>
getSheetNames()
java.util.Set<java.lang.String>
getTemplateTags()
void
setSheetNames(java.util.ArrayList<java.lang.String> sheetNames)
-
Methods inherited from class com.cloudofficeprint.RenderElements.Loops.Loop
addElement, getElements, setElements
-
Methods inherited from class com.cloudofficeprint.RenderElements.RenderElement
getName, getValue, setName, setValue
-
-
-
-
Constructor Detail
-
SheetLoop
public SheetLoop(java.lang.String name, java.util.ArrayList<RenderElement> elements)
To repeat a sheet for each element of elements.- Parameters:
name
- Name of this loop for the tag.elements
- Value to replace the tag with.
-
SheetLoop
public SheetLoop(java.lang.String name, RenderElement[] elements)
To repeat a sheet for each element of elements.- Parameters:
name
- Name of this loop for the tag.elements
- Value to replace the tag with.
-
SheetLoop
public SheetLoop(java.lang.String name, java.util.HashMap<java.lang.String,RenderElement> elements)
To repeat a sheet for each element of elements.- Parameters:
name
- Name of this loop for the tag.elements
- HashMap(name, elements), elements to replace the tag with.
-
-
Method Detail
-
getSheetNames
public java.util.ArrayList<java.lang.String> getSheetNames()
- Returns:
- Arraylist of the names of the repeated sheets.
-
setSheetNames
public void setSheetNames(java.util.ArrayList<java.lang.String> sheetNames)
- Parameters:
sheetNames
- Arraylist of the repeated sheets.
-
getJSON
public com.google.gson.JsonObject getJSON()
-
getTemplateTags
public java.util.Set<java.lang.String> getTemplateTags()
- Overrides:
getTemplateTags
in classLoop
- Returns:
- An immutable set containing all available template tags this element can replace.
-
-