Class RightToLeft


  • public class RightToLeft
    extends RenderElement
    Only supported in Word templates, might work in other templates but behaviour is not predictable. When substituting the content in a language written in right to left, like Arabic, this class can be used to properly format the language. If the substituting content does not contain any right to left language character, then it will behave as a regular substitution tag.
    • Constructor Summary

      Constructors 
      Constructor Description
      RightToLeft​(java.lang.String name, java.lang.String value)
      When substituting the content in a language written in right to left, like Arabic, this object can be used to properly format the language.
    • Constructor Detail

      • RightToLeft

        public RightToLeft​(java.lang.String name,
                           java.lang.String value)
        When substituting the content in a language written in right to left, like Arabic, this object can be used to properly format the language. If the substituting content does not contain any right to left language character, then it will behave as a regular substitution tag.
        Parameters:
        name - Name of this element for the tag.
        value - Value to replace the tag with.
    • Method Detail

      • 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.