public final class DocumentStyle
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 Docs 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
DocumentStyle() |
| Modifier and Type | Method and Description |
|---|---|
DocumentStyle |
clone() |
Background |
getBackground()
The background of the document.
|
String |
getDefaultFooterId()
The ID of the default footer.
|
String |
getDefaultHeaderId()
The ID of the default header.
|
DocumentFormat |
getDocumentFormat()
Specifies document-level format settings, such as the document mode (pages vs pageless).
|
String |
getEvenPageFooterId()
The ID of the footer used only for even pages.
|
String |
getEvenPageHeaderId()
The ID of the header used only for even pages.
|
String |
getFirstPageFooterId()
The ID of the footer used only for the first page.
|
String |
getFirstPageHeaderId()
The ID of the header used only for the first page.
|
Boolean |
getFlipPageOrientation()
Optional.
|
Dimension |
getMarginBottom()
The bottom page margin.
|
Dimension |
getMarginFooter()
The amount of space between the bottom of the page and the contents of the footer.
|
Dimension |
getMarginHeader()
The amount of space between the top of the page and the contents of the header.
|
Dimension |
getMarginLeft()
The left page margin.
|
Dimension |
getMarginRight()
The right page margin.
|
Dimension |
getMarginTop()
The top page margin.
|
Integer |
getPageNumberStart()
The page number from which to start counting the number of pages.
|
Size |
getPageSize()
The size of a page in the document.
|
Boolean |
getUseCustomHeaderFooterMargins()
Indicates whether DocumentStyle margin_header, SectionStyle margin_header and DocumentStyle
margin_footer, SectionStyle margin_footer are respected.
|
Boolean |
getUseEvenPageHeaderFooter()
Indicates whether to use the even page header / footer IDs for the even pages.
|
Boolean |
getUseFirstPageHeaderFooter()
Indicates whether to use the first page header / footer IDs for the first page.
|
DocumentStyle |
set(String fieldName,
Object value) |
DocumentStyle |
setBackground(Background background)
The background of the document.
|
DocumentStyle |
setDefaultFooterId(String defaultFooterId)
The ID of the default footer.
|
DocumentStyle |
setDefaultHeaderId(String defaultHeaderId)
The ID of the default header.
|
DocumentStyle |
setDocumentFormat(DocumentFormat documentFormat)
Specifies document-level format settings, such as the document mode (pages vs pageless).
|
DocumentStyle |
setEvenPageFooterId(String evenPageFooterId)
The ID of the footer used only for even pages.
|
DocumentStyle |
setEvenPageHeaderId(String evenPageHeaderId)
The ID of the header used only for even pages.
|
DocumentStyle |
setFirstPageFooterId(String firstPageFooterId)
The ID of the footer used only for the first page.
|
DocumentStyle |
setFirstPageHeaderId(String firstPageHeaderId)
The ID of the header used only for the first page.
|
DocumentStyle |
setFlipPageOrientation(Boolean flipPageOrientation)
Optional.
|
DocumentStyle |
setMarginBottom(Dimension marginBottom)
The bottom page margin.
|
DocumentStyle |
setMarginFooter(Dimension marginFooter)
The amount of space between the bottom of the page and the contents of the footer.
|
DocumentStyle |
setMarginHeader(Dimension marginHeader)
The amount of space between the top of the page and the contents of the header.
|
DocumentStyle |
setMarginLeft(Dimension marginLeft)
The left page margin.
|
DocumentStyle |
setMarginRight(Dimension marginRight)
The right page margin.
|
DocumentStyle |
setMarginTop(Dimension marginTop)
The top page margin.
|
DocumentStyle |
setPageNumberStart(Integer pageNumberStart)
The page number from which to start counting the number of pages.
|
DocumentStyle |
setPageSize(Size pageSize)
The size of a page in the document.
|
DocumentStyle |
setUseCustomHeaderFooterMargins(Boolean useCustomHeaderFooterMargins)
Indicates whether DocumentStyle margin_header, SectionStyle margin_header and DocumentStyle
margin_footer, SectionStyle margin_footer are respected.
|
DocumentStyle |
setUseEvenPageHeaderFooter(Boolean useEvenPageHeaderFooter)
Indicates whether to use the even page header / footer IDs for the even pages.
|
DocumentStyle |
setUseFirstPageHeaderFooter(Boolean useFirstPageHeaderFooter)
Indicates whether to use the first page header / footer IDs for the first page.
|
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 Background getBackground()
null for nonepublic DocumentStyle setBackground(Background background)
background - background or null for nonepublic String getDefaultFooterId()
null for nonepublic DocumentStyle setDefaultFooterId(String defaultFooterId)
defaultFooterId - defaultFooterId or null for nonepublic String getDefaultHeaderId()
null for nonepublic DocumentStyle setDefaultHeaderId(String defaultHeaderId)
defaultHeaderId - defaultHeaderId or null for nonepublic DocumentFormat getDocumentFormat()
null for nonepublic DocumentStyle setDocumentFormat(DocumentFormat documentFormat)
documentFormat - documentFormat or null for nonepublic String getEvenPageFooterId()
null for nonepublic DocumentStyle setEvenPageFooterId(String evenPageFooterId)
evenPageFooterId - evenPageFooterId or null for nonepublic String getEvenPageHeaderId()
null for nonepublic DocumentStyle setEvenPageHeaderId(String evenPageHeaderId)
evenPageHeaderId - evenPageHeaderId or null for nonepublic String getFirstPageFooterId()
null for nonepublic DocumentStyle setFirstPageFooterId(String firstPageFooterId)
firstPageFooterId - firstPageFooterId or null for nonepublic String getFirstPageHeaderId()
null for nonepublic DocumentStyle setFirstPageHeaderId(String firstPageHeaderId)
firstPageHeaderId - firstPageHeaderId or null for nonepublic Boolean getFlipPageOrientation()
null for nonepublic DocumentStyle setFlipPageOrientation(Boolean flipPageOrientation)
flipPageOrientation - flipPageOrientation or null for nonepublic Dimension getMarginBottom()
null for nonepublic DocumentStyle setMarginBottom(Dimension marginBottom)
marginBottom - marginBottom or null for nonepublic Dimension getMarginFooter()
null for nonepublic DocumentStyle setMarginFooter(Dimension marginFooter)
marginFooter - marginFooter or null for nonepublic Dimension getMarginHeader()
null for nonepublic DocumentStyle setMarginHeader(Dimension marginHeader)
marginHeader - marginHeader or null for nonepublic Dimension getMarginLeft()
null for nonepublic DocumentStyle setMarginLeft(Dimension marginLeft)
marginLeft - marginLeft or null for nonepublic Dimension getMarginRight()
null for nonepublic DocumentStyle setMarginRight(Dimension marginRight)
marginRight - marginRight or null for nonepublic Dimension getMarginTop()
null for nonepublic DocumentStyle setMarginTop(Dimension marginTop)
marginTop - marginTop or null for nonepublic Integer getPageNumberStart()
null for nonepublic DocumentStyle setPageNumberStart(Integer pageNumberStart)
pageNumberStart - pageNumberStart or null for nonepublic Size getPageSize()
null for nonepublic DocumentStyle setPageSize(Size pageSize)
pageSize - pageSize or null for nonepublic Boolean getUseCustomHeaderFooterMargins()
null for nonepublic DocumentStyle setUseCustomHeaderFooterMargins(Boolean useCustomHeaderFooterMargins)
useCustomHeaderFooterMargins - useCustomHeaderFooterMargins or null for nonepublic Boolean getUseEvenPageHeaderFooter()
null for nonepublic DocumentStyle setUseEvenPageHeaderFooter(Boolean useEvenPageHeaderFooter)
useEvenPageHeaderFooter - useEvenPageHeaderFooter or null for nonepublic Boolean getUseFirstPageHeaderFooter()
null for nonepublic DocumentStyle setUseFirstPageHeaderFooter(Boolean useFirstPageHeaderFooter)
useFirstPageHeaderFooter - useFirstPageHeaderFooter or null for nonepublic DocumentStyle set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic DocumentStyle clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.