Class CTXf

java.lang.Object
org.xlsx4j.sml.CTXf
All Implemented Interfaces:
Child

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>
 
  • Field Details

    • alignment

      protected CTCellAlignment alignment
    • protection

      protected CTCellProtection protection
    • extLst

      protected CTExtensionList extLst
    • numFmtId

      protected Long numFmtId
    • fontId

      protected Long fontId
    • fillId

      protected Long fillId
    • borderId

      protected Long borderId
    • xfId

      protected Long xfId
    • quotePrefix

      protected Boolean quotePrefix
    • pivotButton

      protected Boolean pivotButton
    • applyNumberFormat

      protected Boolean applyNumberFormat
    • applyFont

      protected Boolean applyFont
    • applyFill

      protected Boolean applyFill
    • applyBorder

      protected Boolean applyBorder
    • applyAlignment

      protected Boolean applyAlignment
    • applyProtection

      protected Boolean applyProtection
  • Constructor Details

    • CTXf

      public CTXf()
  • Method Details

    • getAlignment

      public CTCellAlignment getAlignment()
      Gets the value of the alignment property.
      Returns:
      possible object is CTCellAlignment
    • setAlignment

      public void setAlignment(CTCellAlignment value)
      Sets the value of the alignment property.
      Parameters:
      value - allowed object is CTCellAlignment
    • getProtection

      public CTCellProtection getProtection()
      Gets the value of the protection property.
      Returns:
      possible object is CTCellProtection
    • setProtection

      public void setProtection(CTCellProtection value)
      Sets the value of the protection property.
      Parameters:
      value - allowed object is CTCellProtection
    • getExtLst

      public CTExtensionList getExtLst()
      Gets the value of the extLst property.
      Returns:
      possible object is CTExtensionList
    • setExtLst

      public void setExtLst(CTExtensionList value)
      Sets the value of the extLst property.
      Parameters:
      value - allowed object is CTExtensionList
    • getNumFmtId

      public Long getNumFmtId()
      Gets the value of the numFmtId property.
      Returns:
      possible object is Long
    • setNumFmtId

      public void setNumFmtId(Long value)
      Sets the value of the numFmtId property.
      Parameters:
      value - allowed object is Long
    • getFontId

      public Long getFontId()
      Gets the value of the fontId property.
      Returns:
      possible object is Long
    • setFontId

      public void setFontId(Long value)
      Sets the value of the fontId property.
      Parameters:
      value - allowed object is Long
    • getFillId

      public Long getFillId()
      Gets the value of the fillId property.
      Returns:
      possible object is Long
    • setFillId

      public void setFillId(Long value)
      Sets the value of the fillId property.
      Parameters:
      value - allowed object is Long
    • getBorderId

      public Long getBorderId()
      Gets the value of the borderId property.
      Returns:
      possible object is Long
    • setBorderId

      public void setBorderId(Long value)
      Sets the value of the borderId property.
      Parameters:
      value - allowed object is Long
    • getXfId

      public Long getXfId()
      Gets the value of the xfId property.
      Returns:
      possible object is Long
    • setXfId

      public void setXfId(Long value)
      Sets the value of the xfId property.
      Parameters:
      value - allowed object is Long
    • isQuotePrefix

      public boolean isQuotePrefix()
      Gets the value of the quotePrefix property.
      Returns:
      possible object is Boolean
    • setQuotePrefix

      public void setQuotePrefix(Boolean value)
      Sets the value of the quotePrefix property.
      Parameters:
      value - allowed object is Boolean
    • isPivotButton

      public boolean isPivotButton()
      Gets the value of the pivotButton property.
      Returns:
      possible object is Boolean
    • setPivotButton

      public void setPivotButton(Boolean value)
      Sets the value of the pivotButton property.
      Parameters:
      value - allowed object is Boolean
    • isApplyNumberFormat

      public Boolean isApplyNumberFormat()
      Gets the value of the applyNumberFormat property.
      Returns:
      possible object is Boolean
    • setApplyNumberFormat

      public void setApplyNumberFormat(Boolean value)
      Sets the value of the applyNumberFormat property.
      Parameters:
      value - allowed object is Boolean
    • isApplyFont

      public Boolean isApplyFont()
      Gets the value of the applyFont property.
      Returns:
      possible object is Boolean
    • setApplyFont

      public void setApplyFont(Boolean value)
      Sets the value of the applyFont property.
      Parameters:
      value - allowed object is Boolean
    • isApplyFill

      public Boolean isApplyFill()
      Gets the value of the applyFill property.
      Returns:
      possible object is Boolean
    • setApplyFill

      public void setApplyFill(Boolean value)
      Sets the value of the applyFill property.
      Parameters:
      value - allowed object is Boolean
    • isApplyBorder

      public Boolean isApplyBorder()
      Gets the value of the applyBorder property.
      Returns:
      possible object is Boolean
    • setApplyBorder

      public void setApplyBorder(Boolean value)
      Sets the value of the applyBorder property.
      Parameters:
      value - allowed object is Boolean
    • isApplyAlignment

      public Boolean isApplyAlignment()
      Gets the value of the applyAlignment property.
      Returns:
      possible object is Boolean
    • setApplyAlignment

      public void setApplyAlignment(Boolean value)
      Sets the value of the applyAlignment property.
      Parameters:
      value - allowed object is Boolean
    • isApplyProtection

      public Boolean isApplyProtection()
      Gets the value of the applyProtection property.
      Returns:
      possible object is Boolean
    • setApplyProtection

      public void setApplyProtection(Boolean value)
      Sets the value of the applyProtection property.
      Parameters:
      value - allowed object is Boolean
    • getParent

      public Object getParent()
      Gets the parent object in the object tree representing the unmarshalled xml document.
      Specified by:
      getParent in interface Child
      Returns:
      The parent object.
    • setParent

      public void setParent(Object parent)
      Specified by:
      setParent in interface Child
    • afterUnmarshal

      public void afterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, 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.