public class CTXf extends Object implements Child
A single xf (format) element describes all of the formatting for a cell.
Java class for CT_Xf complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CT_Xf">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="alignment" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellAlignment" minOccurs="0"/>
<element name="protection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellProtection" minOccurs="0"/>
<element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
</sequence>
<attribute name="numFmtId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_NumFmtId" />
<attribute name="fontId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FontId" />
<attribute name="fillId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FillId" />
<attribute name="borderId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_BorderId" />
<attribute name="xfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellStyleXfId" />
<attribute name="quotePrefix" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="pivotButton" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="applyNumberFormat" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="applyFont" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="applyFill" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="applyBorder" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="applyAlignment" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="applyProtection" type="{http://www.w3.org/2001/XMLSchema}boolean" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected CTCellAlignment |
alignment |
protected Boolean |
applyAlignment |
protected Boolean |
applyBorder |
protected Boolean |
applyFill |
protected Boolean |
applyFont |
protected Boolean |
applyNumberFormat |
protected Boolean |
applyProtection |
protected Long |
borderId |
protected CTExtensionList |
extLst |
protected Long |
fillId |
protected Long |
fontId |
protected Long |
numFmtId |
protected Boolean |
pivotButton |
protected CTCellProtection |
protection |
protected Boolean |
quotePrefix |
protected Long |
xfId |
| Constructor and Description |
|---|
CTXf() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterUnmarshal(Unmarshaller unmarshaller,
Object parent)
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
|
CTCellAlignment |
getAlignment()
Gets the value of the alignment property.
|
Long |
getBorderId()
Gets the value of the borderId property.
|
CTExtensionList |
getExtLst()
Gets the value of the extLst property.
|
Long |
getFillId()
Gets the value of the fillId property.
|
Long |
getFontId()
Gets the value of the fontId property.
|
Long |
getNumFmtId()
Gets the value of the numFmtId property.
|
Object |
getParent()
Gets the parent object in the object tree representing the unmarshalled xml document.
|
CTCellProtection |
getProtection()
Gets the value of the protection property.
|
Long |
getXfId()
Gets the value of the xfId property.
|
Boolean |
isApplyAlignment()
Gets the value of the applyAlignment property.
|
Boolean |
isApplyBorder()
Gets the value of the applyBorder property.
|
Boolean |
isApplyFill()
Gets the value of the applyFill property.
|
Boolean |
isApplyFont()
Gets the value of the applyFont property.
|
Boolean |
isApplyNumberFormat()
Gets the value of the applyNumberFormat property.
|
Boolean |
isApplyProtection()
Gets the value of the applyProtection property.
|
boolean |
isPivotButton()
Gets the value of the pivotButton property.
|
boolean |
isQuotePrefix()
Gets the value of the quotePrefix property.
|
void |
setAlignment(CTCellAlignment value)
Sets the value of the alignment property.
|
void |
setApplyAlignment(Boolean value)
Sets the value of the applyAlignment property.
|
void |
setApplyBorder(Boolean value)
Sets the value of the applyBorder property.
|
void |
setApplyFill(Boolean value)
Sets the value of the applyFill property.
|
void |
setApplyFont(Boolean value)
Sets the value of the applyFont property.
|
void |
setApplyNumberFormat(Boolean value)
Sets the value of the applyNumberFormat property.
|
void |
setApplyProtection(Boolean value)
Sets the value of the applyProtection property.
|
void |
setBorderId(Long value)
Sets the value of the borderId property.
|
void |
setExtLst(CTExtensionList value)
Sets the value of the extLst property.
|
void |
setFillId(Long value)
Sets the value of the fillId property.
|
void |
setFontId(Long value)
Sets the value of the fontId property.
|
void |
setNumFmtId(Long value)
Sets the value of the numFmtId property.
|
void |
setParent(Object parent) |
void |
setPivotButton(Boolean value)
Sets the value of the pivotButton property.
|
void |
setProtection(CTCellProtection value)
Sets the value of the protection property.
|
void |
setQuotePrefix(Boolean value)
Sets the value of the quotePrefix property.
|
void |
setXfId(Long value)
Sets the value of the xfId property.
|
protected CTCellAlignment alignment
protected CTCellProtection protection
protected CTExtensionList extLst
protected Long numFmtId
protected Long fontId
protected Long fillId
protected Long borderId
protected Long xfId
protected Boolean quotePrefix
protected Boolean pivotButton
protected Boolean applyNumberFormat
protected Boolean applyFont
protected Boolean applyFill
protected Boolean applyBorder
protected Boolean applyAlignment
protected Boolean applyProtection
public CTCellAlignment getAlignment()
CTCellAlignmentpublic void setAlignment(CTCellAlignment value)
value - allowed object is
CTCellAlignmentpublic CTCellProtection getProtection()
CTCellProtectionpublic void setProtection(CTCellProtection value)
value - allowed object is
CTCellProtectionpublic CTExtensionList getExtLst()
CTExtensionListpublic void setExtLst(CTExtensionList value)
value - allowed object is
CTExtensionListpublic Long getNumFmtId()
Longpublic void setNumFmtId(Long value)
value - allowed object is
Longpublic Long getFontId()
Longpublic void setFontId(Long value)
value - allowed object is
Longpublic Long getFillId()
Longpublic void setFillId(Long value)
value - allowed object is
Longpublic Long getBorderId()
Longpublic void setBorderId(Long value)
value - allowed object is
Longpublic void setXfId(Long value)
value - allowed object is
Longpublic boolean isQuotePrefix()
Booleanpublic void setQuotePrefix(Boolean value)
value - allowed object is
Booleanpublic boolean isPivotButton()
Booleanpublic void setPivotButton(Boolean value)
value - allowed object is
Booleanpublic Boolean isApplyNumberFormat()
Booleanpublic void setApplyNumberFormat(Boolean value)
value - allowed object is
Booleanpublic Boolean isApplyFont()
Booleanpublic void setApplyFont(Boolean value)
value - allowed object is
Booleanpublic Boolean isApplyFill()
Booleanpublic void setApplyFill(Boolean value)
value - allowed object is
Booleanpublic Boolean isApplyBorder()
Booleanpublic void setApplyBorder(Boolean value)
value - allowed object is
Booleanpublic Boolean isApplyAlignment()
Booleanpublic void setApplyAlignment(Boolean value)
value - allowed object is
Booleanpublic Boolean isApplyProtection()
Booleanpublic void setApplyProtection(Boolean value)
value - allowed object is
Booleanpublic Object getParent()
public void afterUnmarshal(Unmarshaller unmarshaller, Object parent)
parent - The parent object in the object tree.unmarshaller - The unmarshaller that generated the instance.Copyright © 2007-2022. All Rights Reserved.