Class CTTableCell

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

public class CTTableCell extends 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 Details

  • 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(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(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(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(Boolean value)
      Sets the value of the vMerge 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.