Ejemplo n.º 1
0
 /**
  * Returns table width of teh XWPF table.
  *
  * @param table
  * @return
  */
 public static TableWidth getTableWidth(XWPFTable table) {
   float width = 0;
   boolean percentUnit = false;
   CTTblPr tblPr = table.getCTTbl().getTblPr();
   if (tblPr.isSetTblW()) {
     CTTblWidth tblWidth = tblPr.getTblW();
     return getTableWidth(tblWidth);
   }
   return new TableWidth(width, percentUnit);
 }