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 CTCellAlignment alignment  
    protected java.lang.Boolean applyAlignment  
    protected java.lang.Boolean applyBorder  
    protected java.lang.Boolean applyFill  
    protected java.lang.Boolean applyFont  
    protected java.lang.Boolean applyNumberFormat  
    protected java.lang.Boolean applyProtection  
    protected java.lang.Long borderId  
    protected CTExtensionList extLst  
    protected java.lang.Long fillId  
    protected java.lang.Long fontId  
    protected java.lang.Long numFmtId  
    protected java.lang.Boolean pivotButton  
    protected CTCellProtection protection  
    protected java.lang.Boolean quotePrefix  
    protected java.lang.Long xfId  
  • Constructor Summary

    Constructors
    Constructor Description
    CTXf()  
  • Method Summary

    Modifier and Type Method Description
    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.
    CTCellAlignment getAlignment()
    Gets the value of the alignment property.
    java.lang.Long getBorderId()
    Gets the value of the borderId property.
    CTExtensionList getExtLst()
    Gets the value of the extLst property.
    java.lang.Long getFillId()
    Gets the value of the fillId property.
    java.lang.Long getFontId()
    Gets the value of the fontId property.
    java.lang.Long getNumFmtId()
    Gets the value of the numFmtId property.
    java.lang.Object getParent()
    Gets the parent object in the object tree representing the unmarshalled xml document.
    CTCellProtection getProtection()
    Gets the value of the protection property.
    java.lang.Long getXfId()
    Gets the value of the xfId property.
    java.lang.Boolean isApplyAlignment()
    Gets the value of the applyAlignment property.
    java.lang.Boolean isApplyBorder()
    Gets the value of the applyBorder property.
    java.lang.Boolean isApplyFill()
    Gets the value of the applyFill property.
    java.lang.Boolean isApplyFont()
    Gets the value of the applyFont property.
    java.lang.Boolean isApplyNumberFormat()
    Gets the value of the applyNumberFormat property.
    java.lang.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​(java.lang.Boolean value)
    Sets the value of the applyAlignment property.
    void setApplyBorder​(java.lang.Boolean value)
    Sets the value of the applyBorder property.
    void setApplyFill​(java.lang.Boolean value)
    Sets the value of the applyFill property.
    void setApplyFont​(java.lang.Boolean value)
    Sets the value of the applyFont property.
    void setApplyNumberFormat​(java.lang.Boolean value)
    Sets the value of the applyNumberFormat property.
    void setApplyProtection​(java.lang.Boolean value)
    Sets the value of the applyProtection property.
    void setBorderId​(java.lang.Long value)
    Sets the value of the borderId property.
    void setExtLst​(CTExtensionList value)
    Sets the value of the extLst property.
    void setFillId​(java.lang.Long value)
    Sets the value of the fillId property.
    void setFontId​(java.lang.Long value)
    Sets the value of the fontId property.
    void setNumFmtId​(java.lang.Long value)
    Sets the value of the numFmtId property.
    void setParent​(java.lang.Object parent)  
    void setPivotButton​(java.lang.Boolean value)
    Sets the value of the pivotButton property.
    void setProtection​(CTCellProtection value)
    Sets the value of the protection property.
    void setQuotePrefix​(java.lang.Boolean value)
    Sets the value of the quotePrefix property.
    void setXfId​(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

      protected CTCellAlignment alignment
    • protection

      protected CTCellProtection protection
    • extLst

      protected CTExtensionList 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

      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 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 is Long
    • 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 is Long
    • 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 is Long
    • 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 is Long
    • 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 is Long
    • 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 is Boolean
    • 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 is Boolean
    • 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 is Boolean
    • 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 is Boolean
    • 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 is Boolean
    • 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 is Boolean
    • 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 is Boolean
    • 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 is Boolean
    • getParent

      public java.lang.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​(java.lang.Object parent)
      Specified by:
      setParent in interface Child
    • 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.