Class TextBox
- java.lang.Object
-
- com.cloudofficeprint.RenderElements.RenderElement
-
- com.cloudofficeprint.RenderElements.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 Summary
Constructors Constructor Description TextBox(java.lang.String name, java.lang.String text)
This object represents a text box starting in the cell containing the tag in Excel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFont()
java.lang.String
getFontColor()
java.lang.Integer
getFontSize()
java.lang.String
getHeight()
com.google.gson.JsonObject
getJSON()
java.util.Set<java.lang.String>
getTemplateTags()
java.lang.String
getTransparency()
java.lang.String
getWidth()
void
setFont(java.lang.String font)
void
setFontColor(java.lang.String fontColor)
void
setFontSize(java.lang.Integer fontSize)
void
setHeight(java.lang.String height)
void
setTransparency(java.lang.String transparency)
void
setWidth(java.lang.String width)
-
Methods inherited from class com.cloudofficeprint.RenderElements.RenderElement
getName, getValue, setName, setValue
-
-
-
-
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 classRenderElement
- 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 classRenderElement
- Returns:
- An immutable set containing all available template tags this element can replace.
-
-