Class RightToLeft
- java.lang.Object
-
- com.cloudofficeprint.RenderElements.RenderElement
-
- com.cloudofficeprint.RenderElements.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.
-
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
-
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 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.
-
-