Class CTColumns

java.lang.Object
org.docx4j.wml.CTColumns
All Implemented Interfaces:
Child

public class CTColumns extends Object implements Child

Java class for CT_Columns complex type.

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

 <complexType name="CT_Columns">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence minOccurs="0">
         <element name="col" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Column" maxOccurs="45"/>
       </sequence>
       <attribute name="equalWidth" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="space" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_TwipsMeasure" />
       <attribute name="num" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
       <attribute name="sep" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • CTColumns

      public CTColumns()
  • Method Details

    • getCol

      public List<CTColumn> getCol()
      Gets the value of the col property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the col property.

      For example, to add a new item, do as follows:

          getCol().add(newItem);
       

      Objects of the following type(s) are allowed in the list CTColumn

    • isEqualWidth

      public boolean isEqualWidth()
      Gets the value of the equalWidth property.
      Returns:
      possible object is Boolean
    • setEqualWidth

      public void setEqualWidth(Boolean value)
      Sets the value of the equalWidth property.
      Parameters:
      value - allowed object is Boolean
    • getSpace

      public BigInteger getSpace()
      Gets the value of the space property.
      Returns:
      possible object is BigInteger
    • setSpace

      public void setSpace(BigInteger value)
      Sets the value of the space property.
      Parameters:
      value - allowed object is BigInteger
    • getNum

      public BigInteger getNum()
      Gets the value of the num property.
      Returns:
      possible object is BigInteger
    • setNum

      public void setNum(BigInteger value)
      Sets the value of the num property.
      Parameters:
      value - allowed object is BigInteger
    • isSep

      public boolean isSep()
      Gets the value of the sep property.
      Returns:
      possible object is Boolean
    • setSep

      public void setSep(Boolean value)
      Sets the value of the sep 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.