Class 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 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()
        Overrides:
        getJSON in class Loop
        Returns:
        JSONObject with the tags for this element for the Cloud Office Print server.
      • getTemplateTags

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