Class CTTableCell

java.lang.Object
org.docx4j.dml.CTTableCell
All Implemented Interfaces:
Child

public class CTTableCell
extends java.lang.Object
implements Child

Java class for CT_TableCell complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="CT_TableCell">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="txBody" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_TextBody" minOccurs="0"/>
         <element name="tcPr" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_TableCellProperties" minOccurs="0"/>
         <element name="extLst" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_OfficeArtExtensionList" minOccurs="0"/>
       </sequence>
       <attribute name="rowSpan" type="{http://www.w3.org/2001/XMLSchema}int" default="1" />
       <attribute name="gridSpan" type="{http://www.w3.org/2001/XMLSchema}int" default="1" />
       <attribute name="hMerge" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="vMerge" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected CTOfficeArtExtensionList extLst  
    protected java.lang.Integer gridSpan  
    protected java.lang.Boolean hMerge  
    protected java.lang.Integer rowSpan  
    protected CTTableCellProperties tcPr  
    protected CTTextBody txBody  
    protected java.lang.Boolean vMerge  
  • Constructor Summary

    Constructors
    Constructor Description
    CTTableCell()  
  • 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.
    CTOfficeArtExtensionList getExtLst()
    Gets the value of the extLst property.
    int getGridSpan()
    Gets the value of the gridSpan property.
    java.lang.Object getParent()
    Gets the parent object in the object tree representing the unmarshalled xml document.
    int getRowSpan()
    Gets the value of the rowSpan property.
    CTTableCellProperties getTcPr()
    Gets the value of the tcPr property.
    CTTextBody getTxBody()
    Gets the value of the txBody property.
    boolean isHMerge()
    Gets the value of the hMerge property.
    boolean isVMerge()
    Gets the value of the vMerge property.
    void setExtLst​(CTOfficeArtExtensionList value)
    Sets the value of the extLst property.
    void setGridSpan​(java.lang.Integer value)
    Sets the value of the gridSpan property.
    void setHMerge​(java.lang.Boolean value)
    Sets the value of the hMerge property.
    void setParent​(java.lang.Object parent)  
    void setRowSpan​(java.lang.Integer value)
    Sets the value of the rowSpan property.
    void setTcPr​(CTTableCellProperties value)
    Sets the value of the tcPr property.
    void setTxBody​(CTTextBody value)
    Sets the value of the txBody property.
    void setVMerge​(java.lang.Boolean value)
    Sets the value of the vMerge property.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • txBody

      protected CTTextBody txBody
    • tcPr

      protected CTTableCellProperties tcPr
    • extLst

      protected CTOfficeArtExtensionList extLst
    • rowSpan

      protected java.lang.Integer rowSpan
    • gridSpan

      protected java.lang.Integer gridSpan
    • hMerge

      protected java.lang.Boolean hMerge
    • vMerge

      protected java.lang.Boolean vMerge
  • Constructor Details

    • CTTableCell

      public CTTableCell()
  • Method Details

    • getTxBody

      public CTTextBody getTxBody()
      Gets the value of the txBody property.
      Returns:
      possible object is CTTextBody
    • setTxBody

      public void setTxBody​(CTTextBody value)
      Sets the value of the txBody property.
      Parameters:
      value - allowed object is CTTextBody
    • getTcPr

      public CTTableCellProperties getTcPr()
      Gets the value of the tcPr property.
      Returns:
      possible object is CTTableCellProperties
    • setTcPr

      public void setTcPr​(CTTableCellProperties value)
      Sets the value of the tcPr property.
      Parameters:
      value - allowed object is CTTableCellProperties
    • getExtLst

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

      public void setExtLst​(CTOfficeArtExtensionList value)
      Sets the value of the extLst property.
      Parameters:
      value - allowed object is CTOfficeArtExtensionList
    • getRowSpan

      public int getRowSpan()
      Gets the value of the rowSpan property.
      Returns:
      possible object is Integer
    • setRowSpan

      public void setRowSpan​(java.lang.Integer value)
      Sets the value of the rowSpan property.
      Parameters:
      value - allowed object is Integer
    • getGridSpan

      public int getGridSpan()
      Gets the value of the gridSpan property.
      Returns:
      possible object is Integer
    • setGridSpan

      public void setGridSpan​(java.lang.Integer value)
      Sets the value of the gridSpan property.
      Parameters:
      value - allowed object is Integer
    • isHMerge

      public boolean isHMerge()
      Gets the value of the hMerge property.
      Returns:
      possible object is Boolean
    • setHMerge

      public void setHMerge​(java.lang.Boolean value)
      Sets the value of the hMerge property.
      Parameters:
      value - allowed object is Boolean
    • isVMerge

      public boolean isVMerge()
      Gets the value of the vMerge property.
      Returns:
      possible object is Boolean
    • setVMerge

      public void setVMerge​(java.lang.Boolean value)
      Sets the value of the vMerge 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.