Class Loop

    • Constructor Detail

      • Loop

        public Loop​(java.lang.String name,
                    java.util.ArrayList<RenderElement> elements)
        Loop elements for a template.
        Parameters:
        name - Name of this loop for the tag.
        elements - Elements to replace the tag with.
      • Loop

        public Loop​(java.lang.String name,
                    RenderElement[] elements)
        Loop elements for a template.
        Parameters:
        name - Name of this loop for the tag.
        elements - Elements to replace the tag with.
      • Loop

        public Loop​(java.lang.String name)
        Loop elements for a template.
        Parameters:
        name - Name of this loop for the tag.
    • Method Detail

      • getElements

        public java.util.ArrayList<RenderElement> getElements()
        Returns:
        All the elements of the loop.
      • setElements

        public void setElements​(java.util.ArrayList<RenderElement> elements)
        Parameters:
        elements - All the elements of the loop.
      • addElement

        public void addElement​(RenderElement element)
        Parameters:
        element - RenderElement to add to the loop.
      • getJSON

        public com.google.gson.JsonObject getJSON()
        Specified by:
        getJSON in class RenderElement
        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 class RenderElement
        Returns:
        An immutable set containing all available template tags this element can replace.