public final class CellFormat
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: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
CellFormat() |
Modifier and Type | Method and Description |
---|---|
CellFormat |
clone() |
Color |
getBackgroundColor()
The background color of the cell.
|
Borders |
getBorders()
The borders of the cell.
|
java.lang.String |
getHorizontalAlignment()
The horizontal alignment of the value in the cell.
|
java.lang.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.
|
java.lang.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
|
java.lang.String |
getVerticalAlignment()
The vertical alignment of the value in the cell.
|
java.lang.String |
getWrapStrategy()
The wrap strategy for the value in the cell.
|
CellFormat |
set(java.lang.String fieldName,
java.lang.Object value) |
CellFormat |
setBackgroundColor(Color backgroundColor)
The background color of the cell.
|
CellFormat |
setBorders(Borders borders)
The borders of the cell.
|
CellFormat |
setHorizontalAlignment(java.lang.String horizontalAlignment)
The horizontal alignment of the value in the cell.
|
CellFormat |
setHyperlinkDisplayType(java.lang.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(java.lang.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(java.lang.String verticalAlignment)
The vertical alignment of the value in the cell.
|
CellFormat |
setWrapStrategy(java.lang.String wrapStrategy)
The wrap strategy for the value in the cell.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Color getBackgroundColor()
null
for nonepublic CellFormat setBackgroundColor(Color backgroundColor)
backgroundColor
- backgroundColor or null
for nonepublic Borders getBorders()
null
for nonepublic CellFormat setBorders(Borders borders)
borders
- borders or null
for nonepublic java.lang.String getHorizontalAlignment()
null
for nonepublic CellFormat setHorizontalAlignment(java.lang.String horizontalAlignment)
horizontalAlignment
- horizontalAlignment or null
for nonepublic java.lang.String getHyperlinkDisplayType()
null
for nonepublic CellFormat setHyperlinkDisplayType(java.lang.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 java.lang.String getTextDirection()
null
for nonepublic CellFormat setTextDirection(java.lang.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 java.lang.String getVerticalAlignment()
null
for nonepublic CellFormat setVerticalAlignment(java.lang.String verticalAlignment)
verticalAlignment
- verticalAlignment or null
for nonepublic java.lang.String getWrapStrategy()
null
for nonepublic CellFormat setWrapStrategy(java.lang.String wrapStrategy)
wrapStrategy
- wrapStrategy or null
for nonepublic CellFormat set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public CellFormat clone()
clone
in class com.google.api.client.json.GenericJson