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

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


    }

    public XWPFBorderType getInsideHBorderType() {
      XWPFBorderType bt = null;

      CTTblPr tblPr = getTrPr();
      if (tblPr.isSetTblBorders()) {
        CTTblBorders ctb = tblPr.getTblBorders();
        if (ctb.isSetInsideH()) {
          CTBorder border = ctb.getInsideH();
          bt = stBorderTypeMap.get(border.getVal().intValue());
        }
      }
View Full Code Here


    }

    public int getInsideHBorderSize() {
      int size = -1;

      CTTblPr tblPr = getTrPr();
      if (tblPr.isSetTblBorders()) {
        CTTblBorders ctb = tblPr.getTblBorders();
        if (ctb.isSetInsideH()) {
          CTBorder border = ctb.getInsideH();
          size = border.getSz().intValue();
        }
      }
View Full Code Here

    }

    public int getInsideHBorderSpace() {
      int space = -1;

      CTTblPr tblPr = getTrPr();
      if (tblPr.isSetTblBorders()) {
        CTTblBorders ctb = tblPr.getTblBorders();
        if (ctb.isSetInsideH()) {
          CTBorder border = ctb.getInsideH();
          space = border.getSpace().intValue();
        }
      }
View Full Code Here

    }

    public String getInsideHBorderColor() {
      String color = null;

      CTTblPr tblPr = getTrPr();
      if (tblPr.isSetTblBorders()) {
        CTTblBorders ctb = tblPr.getTblBorders();
        if (ctb.isSetInsideH()) {
          CTBorder border = ctb.getInsideH();
            color = border.xgetColor().getStringValue();
        }
      }
View Full Code Here

    }

    public XWPFBorderType getInsideVBorderType() {
      XWPFBorderType bt = null;

      CTTblPr tblPr = getTrPr();
      if (tblPr.isSetTblBorders()) {
        CTTblBorders ctb = tblPr.getTblBorders();
        if (ctb.isSetInsideV()) {
          CTBorder border = ctb.getInsideV();
          bt = stBorderTypeMap.get(border.getVal().intValue());
        }
      }
View Full Code Here

    }

    public int getInsideVBorderSize() {
      int size = -1;

      CTTblPr tblPr = getTrPr();
      if (tblPr.isSetTblBorders()) {
        CTTblBorders ctb = tblPr.getTblBorders();
        if (ctb.isSetInsideV()) {
          CTBorder border = ctb.getInsideV();
          size = border.getSz().intValue();
        }
      }
View Full Code Here

    }

    public int getInsideVBorderSpace() {
      int space = -1;

      CTTblPr tblPr = getTrPr();
      if (tblPr.isSetTblBorders()) {
        CTTblBorders ctb = tblPr.getTblBorders();
        if (ctb.isSetInsideV()) {
          CTBorder border = ctb.getInsideV();
          space = border.getSpace().intValue();
        }
      }
View Full Code Here

    }

    public String getInsideVBorderColor() {
      String color = null;

      CTTblPr tblPr = getTrPr();
      if (tblPr.isSetTblBorders()) {
        CTTblBorders ctb = tblPr.getTblBorders();
        if (ctb.isSetInsideV()) {
          CTBorder border = ctb.getInsideV();
            color = border.xgetColor().getStringValue();
        }
      }
View Full Code Here

      return color;
    }

    public int getRowBandSize() {
        int size = 0;
        CTTblPr tblPr = getTrPr();
        if (tblPr.isSetTblStyleRowBandSize()) {
          CTDecimalNumber rowSize = tblPr.getTblStyleRowBandSize();
          size = rowSize.getVal().intValue();
        }
        return size;
    }
View Full Code Here

        }
        return size;
    }

    public void setRowBandSize(int size) {
        CTTblPr tblPr = getTrPr();
        CTDecimalNumber rowSize = tblPr.isSetTblStyleRowBandSize() ? tblPr.getTblStyleRowBandSize() : tblPr.addNewTblStyleRowBandSize();
        rowSize.setVal(BigInteger.valueOf(size));
    }
View Full Code Here

TOP

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

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.