public final class TextFormat extends 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: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
TextFormat() |
Modifier and Type | Method and Description |
---|---|
TextFormat |
clone() |
Boolean |
getBold()
True if the text is bold.
|
String |
getFontFamily()
The font family.
|
Integer |
getFontSize()
The size of the font.
|
Color |
getForegroundColor()
The foreground color of the text.
|
Boolean |
getItalic()
True if the text is italicized.
|
Boolean |
getStrikethrough()
True if the text has a strikethrough.
|
Boolean |
getUnderline()
True if the text is underlined.
|
TextFormat |
set(String fieldName,
Object value) |
TextFormat |
setBold(Boolean bold)
True if the text is bold.
|
TextFormat |
setFontFamily(String fontFamily)
The font family.
|
TextFormat |
setFontSize(Integer fontSize)
The size of the font.
|
TextFormat |
setForegroundColor(Color foregroundColor)
The foreground color of the text.
|
TextFormat |
setItalic(Boolean italic)
True if the text is italicized.
|
TextFormat |
setStrikethrough(Boolean strikethrough)
True if the text has a strikethrough.
|
TextFormat |
setUnderline(Boolean underline)
True if the text is underlined.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Boolean getBold()
null
for nonepublic TextFormat setBold(Boolean bold)
bold
- bold or null
for nonepublic String getFontFamily()
null
for nonepublic TextFormat setFontFamily(String fontFamily)
fontFamily
- fontFamily or null
for nonepublic Integer getFontSize()
null
for nonepublic TextFormat setFontSize(Integer fontSize)
fontSize
- fontSize or null
for nonepublic Color getForegroundColor()
null
for nonepublic TextFormat setForegroundColor(Color foregroundColor)
foregroundColor
- foregroundColor or null
for nonepublic Boolean getItalic()
null
for nonepublic TextFormat setItalic(Boolean italic)
italic
- italic or null
for nonepublic Boolean getStrikethrough()
null
for nonepublic TextFormat setStrikethrough(Boolean strikethrough)
strikethrough
- strikethrough or null
for nonepublic Boolean getUnderline()
null
for nonepublic TextFormat setUnderline(Boolean underline)
underline
- underline or null
for nonepublic TextFormat set(String fieldName, Object value)
set
in class GenericJson
public TextFormat clone()
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.