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.Flags
Constructor and Description |
---|
DocumentStyle() |
Modifier and Type | Method and Description |
---|---|
DocumentStyle |
clone() |
Background |
getBackground()
The background of the document.
|
java.lang.String |
getDefaultFooterId()
The ID of the default footer.
|
java.lang.String |
getDefaultHeaderId()
The ID of the default header.
|
java.lang.String |
getEvenPageFooterId()
The ID of the footer used only for even pages.
|
java.lang.String |
getEvenPageHeaderId()
The ID of the header used only for even pages.
|
java.lang.String |
getFirstPageFooterId()
The ID of the footer used only for the first page.
|
java.lang.String |
getFirstPageHeaderId()
The ID of the header used only for the first page.
|
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.
|
java.lang.Integer |
getPageNumberStart()
The page number from which to start counting the number of pages.
|
Size |
getPageSize()
The size of a page in the document.
|
java.lang.Boolean |
getUseCustomHeaderFooterMargins()
Indicates whether DocumentStyle margin_header, SectionStyle margin_header and DocumentStyle
margin_footer, SectionStyle margin_footer are respected.
|
java.lang.Boolean |
getUseEvenPageHeaderFooter()
Indicates whether to use the even page header / footer IDs for the even pages.
|
java.lang.Boolean |
getUseFirstPageHeaderFooter()
Indicates whether to use the first page header / footer IDs for the first page.
|
DocumentStyle |
set(java.lang.String fieldName,
java.lang.Object value) |
DocumentStyle |
setBackground(Background background)
The background of the document.
|
DocumentStyle |
setDefaultFooterId(java.lang.String defaultFooterId)
The ID of the default footer.
|
DocumentStyle |
setDefaultHeaderId(java.lang.String defaultHeaderId)
The ID of the default header.
|
DocumentStyle |
setEvenPageFooterId(java.lang.String evenPageFooterId)
The ID of the footer used only for even pages.
|
DocumentStyle |
setEvenPageHeaderId(java.lang.String evenPageHeaderId)
The ID of the header used only for even pages.
|
DocumentStyle |
setFirstPageFooterId(java.lang.String firstPageFooterId)
The ID of the footer used only for the first page.
|
DocumentStyle |
setFirstPageHeaderId(java.lang.String firstPageHeaderId)
The ID of the header used only for the first page.
|
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(java.lang.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(java.lang.Boolean useCustomHeaderFooterMargins)
Indicates whether DocumentStyle margin_header, SectionStyle margin_header and DocumentStyle
margin_footer, SectionStyle margin_footer are respected.
|
DocumentStyle |
setUseEvenPageHeaderFooter(java.lang.Boolean useEvenPageHeaderFooter)
Indicates whether to use the even page header / footer IDs for the even pages.
|
DocumentStyle |
setUseFirstPageHeaderFooter(java.lang.Boolean useFirstPageHeaderFooter)
Indicates whether to use the first page header / footer IDs for the first page.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Background getBackground()
null
for nonepublic DocumentStyle setBackground(Background background)
background
- background or null
for nonepublic java.lang.String getDefaultFooterId()
null
for nonepublic DocumentStyle setDefaultFooterId(java.lang.String defaultFooterId)
defaultFooterId
- defaultFooterId or null
for nonepublic java.lang.String getDefaultHeaderId()
null
for nonepublic DocumentStyle setDefaultHeaderId(java.lang.String defaultHeaderId)
defaultHeaderId
- defaultHeaderId or null
for nonepublic java.lang.String getEvenPageFooterId()
null
for nonepublic DocumentStyle setEvenPageFooterId(java.lang.String evenPageFooterId)
evenPageFooterId
- evenPageFooterId or null
for nonepublic java.lang.String getEvenPageHeaderId()
null
for nonepublic DocumentStyle setEvenPageHeaderId(java.lang.String evenPageHeaderId)
evenPageHeaderId
- evenPageHeaderId or null
for nonepublic java.lang.String getFirstPageFooterId()
null
for nonepublic DocumentStyle setFirstPageFooterId(java.lang.String firstPageFooterId)
firstPageFooterId
- firstPageFooterId or null
for nonepublic java.lang.String getFirstPageHeaderId()
null
for nonepublic DocumentStyle setFirstPageHeaderId(java.lang.String firstPageHeaderId)
firstPageHeaderId
- firstPageHeaderId 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 java.lang.Integer getPageNumberStart()
null
for nonepublic DocumentStyle setPageNumberStart(java.lang.Integer pageNumberStart)
pageNumberStart
- pageNumberStart or null
for nonepublic Size getPageSize()
null
for nonepublic DocumentStyle setPageSize(Size pageSize)
pageSize
- pageSize or null
for nonepublic java.lang.Boolean getUseCustomHeaderFooterMargins()
null
for nonepublic DocumentStyle setUseCustomHeaderFooterMargins(java.lang.Boolean useCustomHeaderFooterMargins)
useCustomHeaderFooterMargins
- useCustomHeaderFooterMargins or null
for nonepublic java.lang.Boolean getUseEvenPageHeaderFooter()
null
for nonepublic DocumentStyle setUseEvenPageHeaderFooter(java.lang.Boolean useEvenPageHeaderFooter)
useEvenPageHeaderFooter
- useEvenPageHeaderFooter or null
for nonepublic java.lang.Boolean getUseFirstPageHeaderFooter()
null
for nonepublic DocumentStyle setUseFirstPageHeaderFooter(java.lang.Boolean useFirstPageHeaderFooter)
useFirstPageHeaderFooter
- useFirstPageHeaderFooter or null
for nonepublic DocumentStyle set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public DocumentStyle clone()
clone
in class com.google.api.client.json.GenericJson