Class DOCXTrPr

java.lang.Object
io.keikai.doc.io.schema.docx.DOCXTrPr
All Implemented Interfaces:
ICTElement

public class DOCXTrPr extends Object implements ICTElement
Internal Use Only.

Table Row Properties Definition.

Represents w:trPr in xml.

Author:
Jamson Chan
  • Constructor Summary

    Constructors
    Constructor
    Description
    DOCXTrPr(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTrPr trPr, DOCXTr parent)
    Create a new TableRowProperties by given CTTrPr.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.openxmlformats.schemas.wordprocessingml.x2006.main.CTCnf
    Returns the Table Row Conditional Formatting.
    org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTrPr
    Returns the CT object of current element.
    Returns the Associated HTML div ID.
    Returns the Grid Columns After Last Cell.
    Returns the Grid Columns Before First Cell.
    org.openxmlformats.schemas.wordprocessingml.x2006.main.STJcTable.Enum
    Returns the Table Row Alignment.
    Returns the parent table row.
    org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth
    Returns the Table Row Cell Spacing.
    org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHeight
    Returns the Table Row Height.
    org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth
    Returns the Preferred Width After Table Row.
    org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth
    Returns the Preferred Width Before Table Row.
    boolean
    Returns whether the Table Row Cannot Break Across Pages.
    boolean
    Returns whether the Hidden Table Row Marker.
    boolean
    Returns whether Repeat Table Row on Every New Page.
    void
    setCantSplit(boolean cantSplit)
    Sets whether the Table Row Cannot Break Across Pages.
    void
    setCnfStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTCnf cnfStyle)
    Sets the Table Row Conditional Formatting.
    void
    Sets the Associated HTML div ID.
    void
    setGridAfter(Double gridAfter)
    Sets the Grid Columns After Last Cell.
    void
    setGridBefore(Double gridBefore)
    Sets the Grid Columns Before First Cell.
    void
    setHidden(boolean hidden)
    Sets whether the Hidden Table Row Marker.
    void
    setJc(org.openxmlformats.schemas.wordprocessingml.x2006.main.STJcTable.Enum jc)
    Sets the Table Row Alignment.
    void
    setParent(DOCXTr parent)
    Sets the parent table row.
    void
    setTblCellSpacing(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth tblCellSpacing)
    Sets the Table Row Cell Spacing.
    void
    setTblHeader(boolean tblHeader)
    Sets whether Repeat Table Row on Every New Page.
    void
    setTrHeight(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHeight trHeight)
    Sets the Table Row Height.
    void
    setWAfter(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth wAfter)
    Sets the Preferred Width After Table Row.
    void
    setWBefore(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth wBefore)
    Sets the Preferred Width Before Table Row.

    Methods inherited from class java.lang.Object

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

    • DOCXTrPr

      public DOCXTrPr(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTrPr trPr, DOCXTr parent)
      Create a new TableRowProperties by given CTTrPr.
      Parameters:
      trPr - the CTTrPr object.
      parent - the parent TableRow object.
  • Method Details

    • getCT

      public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTrPr getCT()
      Description copied from interface: ICTElement
      Returns the CT object of current element.
      Specified by:
      getCT in interface ICTElement
    • getParent

      public DOCXTr getParent()
      Returns the parent table row.
      Returns:
      the parent table row.
    • setParent

      public void setParent(DOCXTr parent)
      Sets the parent table row.
      Parameters:
      parent - the parent table row.
    • isCantSplit

      public boolean isCantSplit()
      Returns whether the Table Row Cannot Break Across Pages.

      Represents the following element tag in the schema: w:cantSplit.

      Returns:
      whether the Table Row Cannot Break Across Pages.
    • setCantSplit

      public void setCantSplit(boolean cantSplit)
      Sets whether the Table Row Cannot Break Across Pages.

      Represents the following element tag in the schema: w:cantSplit.

      Parameters:
      cantSplit - whether the Table Row Cannot Break Across Pages.
    • getCnfStyle

      public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTCnf getCnfStyle()
      Returns the Table Row Conditional Formatting.

      Represents the following element tag in the schema: w:cnfStyle.

      Returns:
      the Table Row Conditional Formatting.
    • setCnfStyle

      public void setCnfStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTCnf cnfStyle)
      Sets the Table Row Conditional Formatting.

      Represents the following element tag in the schema: w:cnfStyle.

      Parameters:
      cnfStyle - the Table Row Conditional Formatting.
    • getDivId

      public Integer getDivId()
      Returns the Associated HTML div ID.

      Represents the following element tag in the schema: w:divId.

      Returns:
      the Associated HTML div ID.
    • setDivId

      public void setDivId(Integer divId)
      Sets the Associated HTML div ID.

      Represents the following element tag in the schema: w:divId.

      Parameters:
      divId - the Associated HTML div ID.
    • getGridAfter

      public Double getGridAfter()
      Returns the Grid Columns After Last Cell.

      Represents the following element tag in the schema: w:gridAfter.

      Returns:
      the Grid Columns After Last Cell.
    • setGridAfter

      public void setGridAfter(Double gridAfter)
      Sets the Grid Columns After Last Cell.

      Represents the following element tag in the schema: w:gridAfter.

      Parameters:
      gridAfter - the Grid Columns After Last Cell.
    • getGridBefore

      public Double getGridBefore()
      Returns the Grid Columns Before First Cell.

      Represents the following element tag in the schema: w:gridBefore.

      Returns:
      the Grid Columns Before First Cell.
    • setGridBefore

      public void setGridBefore(Double gridBefore)
      Sets the Grid Columns Before First Cell.

      Represents the following element tag in the schema: w:gridBefore.

      Parameters:
      gridBefore - the Grid Columns Before First Cell.
    • isHidden

      public boolean isHidden()
      Returns whether the Hidden Table Row Marker.

      Represents the following element tag in the schema: w:hidden.

      Returns:
      whether the Hidden Table Row Marker.
    • setHidden

      public void setHidden(boolean hidden)
      Sets whether the Hidden Table Row Marker.

      Represents the following element tag in the schema: w:hidden.

      Parameters:
      hidden - whether the Hidden Table Row Marker.
    • getJc

      public org.openxmlformats.schemas.wordprocessingml.x2006.main.STJcTable.Enum getJc()
      Returns the Table Row Alignment.

      Represents the following element tag in the schema: w:jc.

      Returns:
      the Table Row Alignment.
    • setJc

      public void setJc(org.openxmlformats.schemas.wordprocessingml.x2006.main.STJcTable.Enum jc)
      Sets the Table Row Alignment.

      Represents the following element tag in the schema: w:jc.

      Parameters:
      jc - the Table Row Alignment.
    • getTblCellSpacing

      public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth getTblCellSpacing()
      Returns the Table Row Cell Spacing.

      Represents the following element tag in the schema: w:tblCellSpacing.

      Returns:
      the Table Row Cell Spacing.
    • setTblCellSpacing

      public void setTblCellSpacing(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth tblCellSpacing)
      Sets the Table Row Cell Spacing.

      Represents the following element tag in the schema: w:tblCellSpacing.

      Parameters:
      tblCellSpacing - the Table Row Cell Spacing.
    • isTblHeader

      public boolean isTblHeader()
      Returns whether Repeat Table Row on Every New Page.

      Represents the following element tag in the schema: w:tblHeader.

      Returns:
      whether Repeat Table Row on Every New Page.
    • setTblHeader

      public void setTblHeader(boolean tblHeader)
      Sets whether Repeat Table Row on Every New Page.

      Represents the following element tag in the schema: w:tblHeader.

      Parameters:
      tblHeader - whether Repeat Table Row on Every New Page.
    • getTrHeight

      public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHeight getTrHeight()
      Returns the Table Row Height.

      Represents the following element tag in the schema: w:trHeight.

      Returns:
      the Table Row Height.
    • setTrHeight

      public void setTrHeight(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHeight trHeight)
      Sets the Table Row Height.

      Represents the following element tag in the schema: w:trHeight.

      Parameters:
      trHeight - the Table Row Height.
    • getWAfter

      public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth getWAfter()
      Returns the Preferred Width After Table Row.

      Represents the following element tag in the schema: w:wAfter.

      Returns:
      the Preferred Width After Table Row.
    • setWAfter

      public void setWAfter(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth wAfter)
      Sets the Preferred Width After Table Row.

      Represents the following element tag in the schema: w:wAfter.

      Parameters:
      wAfter - the Preferred Width After Table Row.
    • getWBefore

      public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth getWBefore()
      Returns the Preferred Width Before Table Row.

      Represents the following element tag in the schema: w:wBefore.

      Returns:
      the Preferred Width Before Table Row.
    • setWBefore

      public void setWBefore(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth wBefore)
      Sets the Preferred Width Before Table Row.

      Represents the following element tag in the schema: w:wBefore.

      Parameters:
      wBefore - the Preferred Width Before Table Row.