Package org.openxmlformats.schemas.wordprocessingml.x2006.main

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTrPr


     * of an hRule value of auto).
     *
     * @param height
     */
    public void setHeight(int height) {
        CTTrPr properties = getTrPr();
        CTHeight h = properties.sizeOfTrHeightArray() == 0 ? properties.addNewTrHeight() : properties.getTrHeightArray(0);
        h.setVal(new BigInteger("" + height));
    }
View Full Code Here


     * of an hRule value of auto).
     *
     * @return height
     */
    public int getHeight() {
        CTTrPr properties = getTrPr();
        return properties.sizeOfTrHeightArray() == 0 ? 0 : properties.getTrHeightArray(0).getVal().intValue();
    }
View Full Code Here

     * of an hRule value of auto).
     *
     * @param height
     */
    public void setHeight(int height) {
        CTTrPr properties = getTrPr();
        CTHeight h = properties.sizeOfTrHeightArray() == 0 ? properties.addNewTrHeight() : properties.getTrHeightArray(0);
        h.setVal(new BigInteger("" + height));
    }
View Full Code Here

     * of an hRule value of auto).
     *
     * @return height
     */
    public int getHeight() {
        CTTrPr properties = getTrPr();
        return properties.sizeOfTrHeightArray() == 0 ? 0 : properties.getTrHeightArray(0).getVal().intValue();
    }
View Full Code Here

     * of an hRule value of auto).
     *
     * @param height
     */
    public void setHeight(int height) {
  CTTrPr properties = getTrPr();
  CTHeight h = properties.sizeOfTrHeightArray() == 0 ? properties.addNewTrHeight() : properties.getTrHeightArray(0);
  h.setVal(new BigInteger("" + height));
    }
View Full Code Here

     * of an hRule value of auto).
     *
     * @return height
     */
    public int getHeight() {
  CTTrPr properties = getTrPr();
  return properties.sizeOfTrHeightArray() == 0 ? 0 : properties.getTrHeightArray(0).getVal().intValue();
    }
View Full Code Here

     * DON'T allow rows to split, false means allow rows to split.
     * @param split - if true, don't allow rows to be split. If false, allow
     *        rows to be split.
     */
    public void setCantSplitRow(boolean split) {
  CTTrPr trpr = getTrPr();
  CTOnOff onoff = trpr.addNewCantSplit();
  onoff.setVal(split ? STOnOff.ON : STOnOff.OFF);
    }
View Full Code Here

     * split, FALSE means allow rows to split.
     * @return true if rows can't be split, false otherwise.
     */
    public boolean isCantSplitRow() {
  boolean isCant = false;
  CTTrPr trpr = getTrPr();
  if (trpr.sizeOfCantSplitArray() > 0) {
      CTOnOff onoff = trpr.getCantSplitList().get(0);
      isCant = onoff.getVal().equals(STOnOff.ON);
  }
  return isCant;
    }
View Full Code Here

     * of a table split across pages.
     * @param repeat - if TRUE, repeat header row at the top of each page of table;
     *                 if FALSE, don't repeat header row.
     */
    public void setRepeatHeader(boolean repeat) {
  CTTrPr trpr = getTrPr();
  CTOnOff onoff = trpr.addNewTblHeader();
  onoff.setVal(repeat ? STOnOff.ON : STOnOff.OFF);
    }
View Full Code Here

     * @return true if table's header row should be repeated at the top of each
     *         page of table, false otherwise.
     */
    public boolean isRepeatHeader() {
  boolean repeat = false;
  CTTrPr trpr = getTrPr();
  if (trpr.sizeOfTblHeaderArray() > 0) {
      CTOnOff rpt = trpr.getTblHeaderList().get(0);
      repeat = rpt.getVal().equals(STOnOff.ON);
  }
  return repeat;
    }
View Full Code Here

TOP

Related Classes of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTrPr

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.