Class StyledProperty


  • public class StyledProperty
    extends RenderElement
    Only supported in Word and Powerpoint templates. This {style } tag allows user to style their text.
    • Constructor Detail

      • StyledProperty

        public StyledProperty​(java.lang.String name,
                              java.lang.String value)
        Represents styled text. Set the style with the set functions.
        Parameters:
        name - Name of the property for the tag.
        value - Value to replace the tag with.
    • Method Detail

      • getFont

        public java.lang.String getFont()
        Returns:
        Font of the text.
      • setFont

        public void setFont​(java.lang.String font)
        Parameters:
        font - Font of the text.
      • getFontSize

        public java.lang.String getFontSize()
        Returns:
        Size of the text.
      • setFontSize

        public void setFontSize​(java.lang.String fontSize)
        Parameters:
        fontSize - Size of the text.
      • getFontColor

        public java.lang.String getFontColor()
        Returns:
        Color of the text, in CSS format.
      • setFontColor

        public void setFontColor​(java.lang.String fontColor)
        Parameters:
        fontColor - Color of the text, in CSS format.
      • getBold

        public java.lang.Boolean getBold()
        Returns:
        Whether text is marked in bold.
      • setBold

        public void setBold​(java.lang.Boolean bold)
        Parameters:
        bold - Whether text is marked in bold.
      • getItalic

        public java.lang.Boolean getItalic()
        Returns:
        Whether text is in italic.
      • setItalic

        public void setItalic​(java.lang.Boolean italic)
        Parameters:
        italic - Whether text is in italic.
      • getUnderline

        public java.lang.Boolean getUnderline()
        Returns:
        Whether text is underlind.
      • setUnderline

        public void setUnderline​(java.lang.Boolean underline)
        Parameters:
        underline - Whether text is underlind.
      • getStrikethrough

        public java.lang.Boolean getStrikethrough()
        Returns:
        Whether text is strikethroughed.
      • setStrikethrough

        public void setStrikethrough​(java.lang.Boolean strikethrough)
        Parameters:
        strikethrough - Whether text is strikethroughed.
      • getHighlightColor

        public java.lang.String getHighlightColor()
        Returns:
        Color to highlight the text with in CSS format.
      • setHighlightColor

        public void setHighlightColor​(java.lang.String highlightColor)
        Parameters:
        highlightColor - Color to highlight the text with in CSS format.
      • 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.