Class StyledProperty
- java.lang.Object
-
- com.cloudofficeprint.RenderElements.RenderElement
-
- com.cloudofficeprint.RenderElements.StyledProperty
-
public class StyledProperty extends RenderElement
Only supported in Word and Powerpoint templates. This {style } tag allows user to style their text.
-
-
Constructor Summary
Constructors Constructor Description StyledProperty(java.lang.String name, java.lang.String value)
Represents styled text.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
getBold()
java.lang.String
getFont()
java.lang.String
getFontColor()
java.lang.String
getFontSize()
java.lang.String
getHighlightColor()
java.lang.Boolean
getItalic()
com.google.gson.JsonObject
getJSON()
java.lang.Boolean
getStrikethrough()
java.util.Set<java.lang.String>
getTemplateTags()
java.lang.Boolean
getUnderline()
void
setBold(java.lang.Boolean bold)
void
setFont(java.lang.String font)
void
setFontColor(java.lang.String fontColor)
void
setFontSize(java.lang.String fontSize)
void
setHighlightColor(java.lang.String highlightColor)
void
setItalic(java.lang.Boolean italic)
void
setStrikethrough(java.lang.Boolean strikethrough)
void
setUnderline(java.lang.Boolean underline)
-
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.
-
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 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.
-
-