public final class TextFormat
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Sheets API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
TextFormat() |
| Modifier and Type | Method and Description |
|---|---|
TextFormat |
clone() |
java.lang.Boolean |
getBold()
True if the text is bold.
|
java.lang.String |
getFontFamily()
The font family.
|
java.lang.Integer |
getFontSize()
The size of the font.
|
Color |
getForegroundColor()
The foreground color of the text.
|
java.lang.Boolean |
getItalic()
True if the text is italicized.
|
java.lang.Boolean |
getStrikethrough()
True if the text has a strikethrough.
|
java.lang.Boolean |
getUnderline()
True if the text is underlined.
|
TextFormat |
set(java.lang.String fieldName,
java.lang.Object value) |
TextFormat |
setBold(java.lang.Boolean bold)
True if the text is bold.
|
TextFormat |
setFontFamily(java.lang.String fontFamily)
The font family.
|
TextFormat |
setFontSize(java.lang.Integer fontSize)
The size of the font.
|
TextFormat |
setForegroundColor(Color foregroundColor)
The foreground color of the text.
|
TextFormat |
setItalic(java.lang.Boolean italic)
True if the text is italicized.
|
TextFormat |
setStrikethrough(java.lang.Boolean strikethrough)
True if the text has a strikethrough.
|
TextFormat |
setUnderline(java.lang.Boolean underline)
True if the text is underlined.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.Boolean getBold()
null for nonepublic TextFormat setBold(java.lang.Boolean bold)
bold - bold or null for nonepublic java.lang.String getFontFamily()
null for nonepublic TextFormat setFontFamily(java.lang.String fontFamily)
fontFamily - fontFamily or null for nonepublic java.lang.Integer getFontSize()
null for nonepublic TextFormat setFontSize(java.lang.Integer fontSize)
fontSize - fontSize or null for nonepublic Color getForegroundColor()
null for nonepublic TextFormat setForegroundColor(Color foregroundColor)
foregroundColor - foregroundColor or null for nonepublic java.lang.Boolean getItalic()
null for nonepublic TextFormat setItalic(java.lang.Boolean italic)
italic - italic or null for nonepublic java.lang.Boolean getStrikethrough()
null for nonepublic TextFormat setStrikethrough(java.lang.Boolean strikethrough)
strikethrough - strikethrough or null for nonepublic java.lang.Boolean getUnderline()
null for nonepublic TextFormat setUnderline(java.lang.Boolean underline)
underline - underline or null for nonepublic TextFormat set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic TextFormat clone()
clone in class com.google.api.client.json.GenericJson