public final class CellFormat 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
CellFormat() |
| Modifier and Type | Method and Description |
|---|---|
CellFormat |
clone() |
Color |
getBackgroundColor()
The background color of the cell.
|
ColorStyle |
getBackgroundColorStyle()
The background color of the cell.
|
Borders |
getBorders()
The borders of the cell.
|
String |
getHorizontalAlignment()
The horizontal alignment of the value in the cell.
|
String |
getHyperlinkDisplayType()
How a hyperlink, if it exists, should be displayed in the cell.
|
NumberFormat |
getNumberFormat()
A format describing how number values should be represented to the user.
|
Padding |
getPadding()
The padding of the cell.
|
String |
getTextDirection()
The direction of the text in the cell.
|
TextFormat |
getTextFormat()
The format of the text in the cell (unless overridden by a format run).
|
TextRotation |
getTextRotation()
The rotation applied to text in a cell
|
String |
getVerticalAlignment()
The vertical alignment of the value in the cell.
|
String |
getWrapStrategy()
The wrap strategy for the value in the cell.
|
CellFormat |
set(String fieldName,
Object value) |
CellFormat |
setBackgroundColor(Color backgroundColor)
The background color of the cell.
|
CellFormat |
setBackgroundColorStyle(ColorStyle backgroundColorStyle)
The background color of the cell.
|
CellFormat |
setBorders(Borders borders)
The borders of the cell.
|
CellFormat |
setHorizontalAlignment(String horizontalAlignment)
The horizontal alignment of the value in the cell.
|
CellFormat |
setHyperlinkDisplayType(String hyperlinkDisplayType)
How a hyperlink, if it exists, should be displayed in the cell.
|
CellFormat |
setNumberFormat(NumberFormat numberFormat)
A format describing how number values should be represented to the user.
|
CellFormat |
setPadding(Padding padding)
The padding of the cell.
|
CellFormat |
setTextDirection(String textDirection)
The direction of the text in the cell.
|
CellFormat |
setTextFormat(TextFormat textFormat)
The format of the text in the cell (unless overridden by a format run).
|
CellFormat |
setTextRotation(TextRotation textRotation)
The rotation applied to text in a cell
|
CellFormat |
setVerticalAlignment(String verticalAlignment)
The vertical alignment of the value in the cell.
|
CellFormat |
setWrapStrategy(String wrapStrategy)
The wrap strategy for the value in the cell.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Color getBackgroundColor()
null for nonepublic CellFormat setBackgroundColor(Color backgroundColor)
backgroundColor - backgroundColor or null for nonepublic ColorStyle getBackgroundColorStyle()
null for nonepublic CellFormat setBackgroundColorStyle(ColorStyle backgroundColorStyle)
backgroundColorStyle - backgroundColorStyle or null for nonepublic Borders getBorders()
null for nonepublic CellFormat setBorders(Borders borders)
borders - borders or null for nonepublic String getHorizontalAlignment()
null for nonepublic CellFormat setHorizontalAlignment(String horizontalAlignment)
horizontalAlignment - horizontalAlignment or null for nonepublic String getHyperlinkDisplayType()
null for nonepublic CellFormat setHyperlinkDisplayType(String hyperlinkDisplayType)
hyperlinkDisplayType - hyperlinkDisplayType or null for nonepublic NumberFormat getNumberFormat()
null for nonepublic CellFormat setNumberFormat(NumberFormat numberFormat)
numberFormat - numberFormat or null for nonepublic Padding getPadding()
null for nonepublic CellFormat setPadding(Padding padding)
padding - padding or null for nonepublic String getTextDirection()
null for nonepublic CellFormat setTextDirection(String textDirection)
textDirection - textDirection or null for nonepublic TextFormat getTextFormat()
null for nonepublic CellFormat setTextFormat(TextFormat textFormat)
textFormat - textFormat or null for nonepublic TextRotation getTextRotation()
null for nonepublic CellFormat setTextRotation(TextRotation textRotation)
textRotation - textRotation or null for nonepublic String getVerticalAlignment()
null for nonepublic CellFormat setVerticalAlignment(String verticalAlignment)
verticalAlignment - verticalAlignment or null for nonepublic String getWrapStrategy()
null for nonepublic CellFormat setWrapStrategy(String wrapStrategy)
wrapStrategy - wrapStrategy or null for nonepublic CellFormat set(String fieldName, Object value)
set in class GenericJsonpublic CellFormat clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.