Package org.xlsx4j.sml
Class CTPageSetup
java.lang.Object
org.xlsx4j.sml.CTPageSetup
- All Implemented Interfaces:
Child
public class CTPageSetup extends java.lang.Object implements Child
Java class for CT_PageSetup complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CT_PageSetup">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="paperSize" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
<attribute name="paperHeight" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_PositiveUniversalMeasure" />
<attribute name="paperWidth" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_PositiveUniversalMeasure" />
<attribute name="scale" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="100" />
<attribute name="firstPageNumber" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
<attribute name="fitToWidth" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
<attribute name="fitToHeight" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
<attribute name="pageOrder" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PageOrder" default="downThenOver" />
<attribute name="orientation" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Orientation" default="default" />
<attribute name="usePrinterDefaults" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="blackAndWhite" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="draft" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="cellComments" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellComments" default="none" />
<attribute name="useFirstPageNumber" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="errors" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PrintError" default="displayed" />
<attribute name="horizontalDpi" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="600" />
<attribute name="verticalDpi" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="600" />
<attribute name="copies" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
<attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
</restriction>
</complexContent>
</complexType>
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.BooleanblackAndWhiteprotected STCellCommentscellCommentsprotected java.lang.Longcopiesprotected java.lang.Booleandraftprotected STPrintErrorerrorsprotected java.lang.LongfirstPageNumberprotected java.lang.LongfitToHeightprotected java.lang.LongfitToWidthprotected java.lang.LonghorizontalDpiprotected java.lang.Stringidprotected STOrientationorientationprotected STPageOrderpageOrderprotected java.lang.StringpaperHeightprotected java.lang.LongpaperSizeprotected java.lang.StringpaperWidthprotected java.lang.Longscaleprotected java.lang.BooleanuseFirstPageNumberprotected java.lang.BooleanusePrinterDefaultsprotected java.lang.LongverticalDpi -
Constructor Summary
Constructors Constructor Description CTPageSetup() -
Method Summary
Modifier and Type Method Description voidafterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)This method is invoked by the JAXB implementation on each instance when unmarshalling completes.STCellCommentsgetCellComments()Gets the value of the cellComments property.longgetCopies()Gets the value of the copies property.STPrintErrorgetErrors()Gets the value of the errors property.longgetFirstPageNumber()Gets the value of the firstPageNumber property.longgetFitToHeight()Gets the value of the fitToHeight property.longgetFitToWidth()Gets the value of the fitToWidth property.longgetHorizontalDpi()Gets the value of the horizontalDpi property.java.lang.StringgetId()Gets the value of the id property.STOrientationgetOrientation()Gets the value of the orientation property.STPageOrdergetPageOrder()Gets the value of the pageOrder property.java.lang.StringgetPaperHeight()Gets the value of the paperHeight property.longgetPaperSize()Gets the value of the paperSize property.java.lang.StringgetPaperWidth()Gets the value of the paperWidth property.java.lang.ObjectgetParent()Gets the parent object in the object tree representing the unmarshalled xml document.longgetScale()Gets the value of the scale property.longgetVerticalDpi()Gets the value of the verticalDpi property.booleanisBlackAndWhite()Gets the value of the blackAndWhite property.booleanisDraft()Gets the value of the draft property.booleanisUseFirstPageNumber()Gets the value of the useFirstPageNumber property.booleanisUsePrinterDefaults()Gets the value of the usePrinterDefaults property.voidsetBlackAndWhite(java.lang.Boolean value)Sets the value of the blackAndWhite property.voidsetCellComments(STCellComments value)Sets the value of the cellComments property.voidsetCopies(java.lang.Long value)Sets the value of the copies property.voidsetDraft(java.lang.Boolean value)Sets the value of the draft property.voidsetErrors(STPrintError value)Sets the value of the errors property.voidsetFirstPageNumber(java.lang.Long value)Sets the value of the firstPageNumber property.voidsetFitToHeight(java.lang.Long value)Sets the value of the fitToHeight property.voidsetFitToWidth(java.lang.Long value)Sets the value of the fitToWidth property.voidsetHorizontalDpi(java.lang.Long value)Sets the value of the horizontalDpi property.voidsetId(java.lang.String value)Sets the value of the id property.voidsetOrientation(STOrientation value)Sets the value of the orientation property.voidsetPageOrder(STPageOrder value)Sets the value of the pageOrder property.voidsetPaperHeight(java.lang.String value)Sets the value of the paperHeight property.voidsetPaperSize(java.lang.Long value)Sets the value of the paperSize property.voidsetPaperWidth(java.lang.String value)Sets the value of the paperWidth property.voidsetParent(java.lang.Object parent)voidsetScale(java.lang.Long value)Sets the value of the scale property.voidsetUseFirstPageNumber(java.lang.Boolean value)Sets the value of the useFirstPageNumber property.voidsetUsePrinterDefaults(java.lang.Boolean value)Sets the value of the usePrinterDefaults property.voidsetVerticalDpi(java.lang.Long value)Sets the value of the verticalDpi property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
paperSize
protected java.lang.Long paperSize -
paperHeight
protected java.lang.String paperHeight -
paperWidth
protected java.lang.String paperWidth -
scale
protected java.lang.Long scale -
firstPageNumber
protected java.lang.Long firstPageNumber -
fitToWidth
protected java.lang.Long fitToWidth -
fitToHeight
protected java.lang.Long fitToHeight -
pageOrder
-
orientation
-
usePrinterDefaults
protected java.lang.Boolean usePrinterDefaults -
blackAndWhite
protected java.lang.Boolean blackAndWhite -
draft
protected java.lang.Boolean draft -
cellComments
-
useFirstPageNumber
protected java.lang.Boolean useFirstPageNumber -
errors
-
horizontalDpi
protected java.lang.Long horizontalDpi -
verticalDpi
protected java.lang.Long verticalDpi -
copies
protected java.lang.Long copies -
id
protected java.lang.String id
-
-
Constructor Details
-
CTPageSetup
public CTPageSetup()
-
-
Method Details
-
getPaperSize
public long getPaperSize()Gets the value of the paperSize property.- Returns:
- possible object is
Long
-
setPaperSize
public void setPaperSize(java.lang.Long value)Sets the value of the paperSize property.- Parameters:
value- allowed object isLong
-
getPaperHeight
public java.lang.String getPaperHeight()Gets the value of the paperHeight property.- Returns:
- possible object is
String
-
setPaperHeight
public void setPaperHeight(java.lang.String value)Sets the value of the paperHeight property.- Parameters:
value- allowed object isString
-
getPaperWidth
public java.lang.String getPaperWidth()Gets the value of the paperWidth property.- Returns:
- possible object is
String
-
setPaperWidth
public void setPaperWidth(java.lang.String value)Sets the value of the paperWidth property.- Parameters:
value- allowed object isString
-
getScale
public long getScale()Gets the value of the scale property.- Returns:
- possible object is
Long
-
setScale
public void setScale(java.lang.Long value)Sets the value of the scale property.- Parameters:
value- allowed object isLong
-
getFirstPageNumber
public long getFirstPageNumber()Gets the value of the firstPageNumber property.- Returns:
- possible object is
Long
-
setFirstPageNumber
public void setFirstPageNumber(java.lang.Long value)Sets the value of the firstPageNumber property.- Parameters:
value- allowed object isLong
-
getFitToWidth
public long getFitToWidth()Gets the value of the fitToWidth property.- Returns:
- possible object is
Long
-
setFitToWidth
public void setFitToWidth(java.lang.Long value)Sets the value of the fitToWidth property.- Parameters:
value- allowed object isLong
-
getFitToHeight
public long getFitToHeight()Gets the value of the fitToHeight property.- Returns:
- possible object is
Long
-
setFitToHeight
public void setFitToHeight(java.lang.Long value)Sets the value of the fitToHeight property.- Parameters:
value- allowed object isLong
-
getPageOrder
Gets the value of the pageOrder property.- Returns:
- possible object is
STPageOrder
-
setPageOrder
Sets the value of the pageOrder property.- Parameters:
value- allowed object isSTPageOrder
-
getOrientation
Gets the value of the orientation property.- Returns:
- possible object is
STOrientation
-
setOrientation
Sets the value of the orientation property.- Parameters:
value- allowed object isSTOrientation
-
isUsePrinterDefaults
public boolean isUsePrinterDefaults()Gets the value of the usePrinterDefaults property.- Returns:
- possible object is
Boolean
-
setUsePrinterDefaults
public void setUsePrinterDefaults(java.lang.Boolean value)Sets the value of the usePrinterDefaults property.- Parameters:
value- allowed object isBoolean
-
isBlackAndWhite
public boolean isBlackAndWhite()Gets the value of the blackAndWhite property.- Returns:
- possible object is
Boolean
-
setBlackAndWhite
public void setBlackAndWhite(java.lang.Boolean value)Sets the value of the blackAndWhite property.- Parameters:
value- allowed object isBoolean
-
isDraft
public boolean isDraft()Gets the value of the draft property.- Returns:
- possible object is
Boolean
-
setDraft
public void setDraft(java.lang.Boolean value)Sets the value of the draft property.- Parameters:
value- allowed object isBoolean
-
getCellComments
Gets the value of the cellComments property.- Returns:
- possible object is
STCellComments
-
setCellComments
Sets the value of the cellComments property.- Parameters:
value- allowed object isSTCellComments
-
isUseFirstPageNumber
public boolean isUseFirstPageNumber()Gets the value of the useFirstPageNumber property.- Returns:
- possible object is
Boolean
-
setUseFirstPageNumber
public void setUseFirstPageNumber(java.lang.Boolean value)Sets the value of the useFirstPageNumber property.- Parameters:
value- allowed object isBoolean
-
getErrors
Gets the value of the errors property.- Returns:
- possible object is
STPrintError
-
setErrors
Sets the value of the errors property.- Parameters:
value- allowed object isSTPrintError
-
getHorizontalDpi
public long getHorizontalDpi()Gets the value of the horizontalDpi property.- Returns:
- possible object is
Long
-
setHorizontalDpi
public void setHorizontalDpi(java.lang.Long value)Sets the value of the horizontalDpi property.- Parameters:
value- allowed object isLong
-
getVerticalDpi
public long getVerticalDpi()Gets the value of the verticalDpi property.- Returns:
- possible object is
Long
-
setVerticalDpi
public void setVerticalDpi(java.lang.Long value)Sets the value of the verticalDpi property.- Parameters:
value- allowed object isLong
-
getCopies
public long getCopies()Gets the value of the copies property.- Returns:
- possible object is
Long
-
setCopies
public void setCopies(java.lang.Long value)Sets the value of the copies property.- Parameters:
value- allowed object isLong
-
getId
public java.lang.String getId()Gets the value of the id property.- Returns:
- possible object is
String
-
setId
public void setId(java.lang.String value)Sets the value of the id property.- Parameters:
value- allowed object isString
-
getParent
public java.lang.Object getParent()Gets the parent object in the object tree representing the unmarshalled xml document. -
setParent
public void setParent(java.lang.Object parent) -
afterUnmarshal
public void afterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)This method is invoked by the JAXB implementation on each instance when unmarshalling completes.- Parameters:
parent- The parent object in the object tree.unmarshaller- The unmarshaller that generated the instance.
-