Class TextBox


  • public class TextBox
    extends RenderElement
    This tag will allow you to insert a text box starting in the cell containing the tag in Excel.
    • Constructor Detail

      • TextBox

        public TextBox​(java.lang.String name,
                       java.lang.String text)
        This object represents a text box starting in the cell containing the tag in Excel. Options of the text can be set with the setter functions.
        Parameters:
        name - Name for the tag.
        text - Text of the textbox.
    • Method Detail

      • getFont

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

        public void setFont​(java.lang.String font)
        Parameters:
        font - Font of the text, default Calibri.
      • getFontColor

        public java.lang.String getFontColor()
        Returns:
        Color of the text, default black.
      • setFontColor

        public void setFontColor​(java.lang.String fontColor)
        Parameters:
        fontColor - Color of the text, default black.
      • getFontSize

        public java.lang.Integer getFontSize()
        Returns:
        Size of the text, default 60.
      • setFontSize

        public void setFontSize​(java.lang.Integer fontSize)
        Parameters:
        fontSize - Size of the text, default 60.
      • getTransparency

        public java.lang.String getTransparency()
        Returns:
        Transparency of the text in percent, optional default: 0%.
      • setTransparency

        public void setTransparency​(java.lang.String transparency)
        Parameters:
        transparency - Transparency of the text in percent, optional default: 0%.
      • getWidth

        public java.lang.String getWidth()
        Returns:
        Width of the textbox, default 11.22 inch.
      • setWidth

        public void setWidth​(java.lang.String width)
        Parameters:
        width - Width of the textbox, default 11.22 in.
      • getHeight

        public java.lang.String getHeight()
        Returns:
        Height of the textbox, default 3.1 in.
      • setHeight

        public void setHeight​(java.lang.String height)
        Parameters:
        height - Height of the textbox, default 3.1 in.
      • getJSON

        public com.google.gson.JsonObject getJSON()
        Specified by:
        getJSON in class RenderElement
        Returns:
        JSONObject with the tags for this property 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.