Class DOCXTrPr

  • All Implemented Interfaces:
    ICTElement

    public class DOCXTrPr
    extends java.lang.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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.openxmlformats.schemas.wordprocessingml.x2006.main.CTCnf getCnfStyle()
      Returns the Table Row Conditional Formatting.
      org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTrPr getCT()
      Returns the CT object of current element.
      java.lang.Integer getDivId()
      Returns the Associated HTML div ID.
      java.lang.Double getGridAfter()
      Returns the Grid Columns After Last Cell.
      java.lang.Double getGridBefore()
      Returns the Grid Columns Before First Cell.
      org.openxmlformats.schemas.wordprocessingml.x2006.main.STJcTable.Enum getJc()
      Returns the Table Row Alignment.
      DOCXTr getParent()
      Returns the parent table row.
      org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth getTblCellSpacing()
      Returns the Table Row Cell Spacing.
      org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHeight getTrHeight()
      Returns the Table Row Height.
      org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth getWAfter()
      Returns the Preferred Width After Table Row.
      org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth getWBefore()
      Returns the Preferred Width Before Table Row.
      boolean isCantSplit()
      Returns whether the Table Row Cannot Break Across Pages.
      boolean isHidden()
      Returns whether the Hidden Table Row Marker.
      boolean isTblHeader()
      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 setDivId​(java.lang.Integer divId)
      Sets the Associated HTML div ID.
      void setGridAfter​(java.lang.Double gridAfter)
      Sets the Grid Columns After Last Cell.
      void setGridBefore​(java.lang.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 Detail

      • 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 Detail

      • 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 java.lang.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​(java.lang.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 java.lang.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​(java.lang.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 java.lang.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​(java.lang.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.