Package org.xlsx4j.sml
Class CTXf
java.lang.Object
org.xlsx4j.sml.CTXf
- All Implemented Interfaces:
Child
public class CTXf extends java.lang.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>
-
Field Summary
Fields Modifier and Type Field Description protected CTCellAlignmentalignmentprotected java.lang.BooleanapplyAlignmentprotected java.lang.BooleanapplyBorderprotected java.lang.BooleanapplyFillprotected java.lang.BooleanapplyFontprotected java.lang.BooleanapplyNumberFormatprotected java.lang.BooleanapplyProtectionprotected java.lang.LongborderIdprotected CTExtensionListextLstprotected java.lang.LongfillIdprotected java.lang.LongfontIdprotected java.lang.LongnumFmtIdprotected java.lang.BooleanpivotButtonprotected CTCellProtectionprotectionprotected java.lang.BooleanquotePrefixprotected java.lang.LongxfId -
Constructor Summary
Constructors Constructor Description CTXf() -
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.CTCellAlignmentgetAlignment()Gets the value of the alignment property.java.lang.LonggetBorderId()Gets the value of the borderId property.CTExtensionListgetExtLst()Gets the value of the extLst property.java.lang.LonggetFillId()Gets the value of the fillId property.java.lang.LonggetFontId()Gets the value of the fontId property.java.lang.LonggetNumFmtId()Gets the value of the numFmtId property.java.lang.ObjectgetParent()Gets the parent object in the object tree representing the unmarshalled xml document.CTCellProtectiongetProtection()Gets the value of the protection property.java.lang.LonggetXfId()Gets the value of the xfId property.java.lang.BooleanisApplyAlignment()Gets the value of the applyAlignment property.java.lang.BooleanisApplyBorder()Gets the value of the applyBorder property.java.lang.BooleanisApplyFill()Gets the value of the applyFill property.java.lang.BooleanisApplyFont()Gets the value of the applyFont property.java.lang.BooleanisApplyNumberFormat()Gets the value of the applyNumberFormat property.java.lang.BooleanisApplyProtection()Gets the value of the applyProtection property.booleanisPivotButton()Gets the value of the pivotButton property.booleanisQuotePrefix()Gets the value of the quotePrefix property.voidsetAlignment(CTCellAlignment value)Sets the value of the alignment property.voidsetApplyAlignment(java.lang.Boolean value)Sets the value of the applyAlignment property.voidsetApplyBorder(java.lang.Boolean value)Sets the value of the applyBorder property.voidsetApplyFill(java.lang.Boolean value)Sets the value of the applyFill property.voidsetApplyFont(java.lang.Boolean value)Sets the value of the applyFont property.voidsetApplyNumberFormat(java.lang.Boolean value)Sets the value of the applyNumberFormat property.voidsetApplyProtection(java.lang.Boolean value)Sets the value of the applyProtection property.voidsetBorderId(java.lang.Long value)Sets the value of the borderId property.voidsetExtLst(CTExtensionList value)Sets the value of the extLst property.voidsetFillId(java.lang.Long value)Sets the value of the fillId property.voidsetFontId(java.lang.Long value)Sets the value of the fontId property.voidsetNumFmtId(java.lang.Long value)Sets the value of the numFmtId property.voidsetParent(java.lang.Object parent)voidsetPivotButton(java.lang.Boolean value)Sets the value of the pivotButton property.voidsetProtection(CTCellProtection value)Sets the value of the protection property.voidsetQuotePrefix(java.lang.Boolean value)Sets the value of the quotePrefix property.voidsetXfId(java.lang.Long value)Sets the value of the xfId property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
alignment
-
protection
-
extLst
-
numFmtId
protected java.lang.Long numFmtId -
fontId
protected java.lang.Long fontId -
fillId
protected java.lang.Long fillId -
borderId
protected java.lang.Long borderId -
xfId
protected java.lang.Long xfId -
quotePrefix
protected java.lang.Boolean quotePrefix -
pivotButton
protected java.lang.Boolean pivotButton -
applyNumberFormat
protected java.lang.Boolean applyNumberFormat -
applyFont
protected java.lang.Boolean applyFont -
applyFill
protected java.lang.Boolean applyFill -
applyBorder
protected java.lang.Boolean applyBorder -
applyAlignment
protected java.lang.Boolean applyAlignment -
applyProtection
protected java.lang.Boolean applyProtection
-
-
Constructor Details
-
CTXf
public CTXf()
-
-
Method Details
-
getAlignment
Gets the value of the alignment property.- Returns:
- possible object is
CTCellAlignment
-
setAlignment
Sets the value of the alignment property.- Parameters:
value- allowed object isCTCellAlignment
-
getProtection
Gets the value of the protection property.- Returns:
- possible object is
CTCellProtection
-
setProtection
Sets the value of the protection property.- Parameters:
value- allowed object isCTCellProtection
-
getExtLst
Gets the value of the extLst property.- Returns:
- possible object is
CTExtensionList
-
setExtLst
Sets the value of the extLst property.- Parameters:
value- allowed object isCTExtensionList
-
getNumFmtId
public java.lang.Long getNumFmtId()Gets the value of the numFmtId property.- Returns:
- possible object is
Long
-
setNumFmtId
public void setNumFmtId(java.lang.Long value)Sets the value of the numFmtId property.- Parameters:
value- allowed object isLong
-
getFontId
public java.lang.Long getFontId()Gets the value of the fontId property.- Returns:
- possible object is
Long
-
setFontId
public void setFontId(java.lang.Long value)Sets the value of the fontId property.- Parameters:
value- allowed object isLong
-
getFillId
public java.lang.Long getFillId()Gets the value of the fillId property.- Returns:
- possible object is
Long
-
setFillId
public void setFillId(java.lang.Long value)Sets the value of the fillId property.- Parameters:
value- allowed object isLong
-
getBorderId
public java.lang.Long getBorderId()Gets the value of the borderId property.- Returns:
- possible object is
Long
-
setBorderId
public void setBorderId(java.lang.Long value)Sets the value of the borderId property.- Parameters:
value- allowed object isLong
-
getXfId
public java.lang.Long getXfId()Gets the value of the xfId property.- Returns:
- possible object is
Long
-
setXfId
public void setXfId(java.lang.Long value)Sets the value of the xfId property.- Parameters:
value- allowed object isLong
-
isQuotePrefix
public boolean isQuotePrefix()Gets the value of the quotePrefix property.- Returns:
- possible object is
Boolean
-
setQuotePrefix
public void setQuotePrefix(java.lang.Boolean value)Sets the value of the quotePrefix property.- Parameters:
value- allowed object isBoolean
-
isPivotButton
public boolean isPivotButton()Gets the value of the pivotButton property.- Returns:
- possible object is
Boolean
-
setPivotButton
public void setPivotButton(java.lang.Boolean value)Sets the value of the pivotButton property.- Parameters:
value- allowed object isBoolean
-
isApplyNumberFormat
public java.lang.Boolean isApplyNumberFormat()Gets the value of the applyNumberFormat property.- Returns:
- possible object is
Boolean
-
setApplyNumberFormat
public void setApplyNumberFormat(java.lang.Boolean value)Sets the value of the applyNumberFormat property.- Parameters:
value- allowed object isBoolean
-
isApplyFont
public java.lang.Boolean isApplyFont()Gets the value of the applyFont property.- Returns:
- possible object is
Boolean
-
setApplyFont
public void setApplyFont(java.lang.Boolean value)Sets the value of the applyFont property.- Parameters:
value- allowed object isBoolean
-
isApplyFill
public java.lang.Boolean isApplyFill()Gets the value of the applyFill property.- Returns:
- possible object is
Boolean
-
setApplyFill
public void setApplyFill(java.lang.Boolean value)Sets the value of the applyFill property.- Parameters:
value- allowed object isBoolean
-
isApplyBorder
public java.lang.Boolean isApplyBorder()Gets the value of the applyBorder property.- Returns:
- possible object is
Boolean
-
setApplyBorder
public void setApplyBorder(java.lang.Boolean value)Sets the value of the applyBorder property.- Parameters:
value- allowed object isBoolean
-
isApplyAlignment
public java.lang.Boolean isApplyAlignment()Gets the value of the applyAlignment property.- Returns:
- possible object is
Boolean
-
setApplyAlignment
public void setApplyAlignment(java.lang.Boolean value)Sets the value of the applyAlignment property.- Parameters:
value- allowed object isBoolean
-
isApplyProtection
public java.lang.Boolean isApplyProtection()Gets the value of the applyProtection property.- Returns:
- possible object is
Boolean
-
setApplyProtection
public void setApplyProtection(java.lang.Boolean value)Sets the value of the applyProtection property.- Parameters:
value- allowed object isBoolean
-
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.
-