Package org.docx4j.wml

Examples of org.docx4j.wml.CTTblCellMar


      log.warn("table.getEffectiveTableStyle().getTblPr() is null, but should never be");
      return;
    }
   
  TblBorders tblBorders = tblPr.getTblBorders();
  CTTblCellMar tblCellMargin = tblPr.getTblCellMar();
    if (tblBorders!=null) {
      if (tblBorders.getInsideH()!=null) {
        properties.add(new BorderTop(tblBorders.getTop()));
        properties.add(new BorderBottom(tblBorders.getBottom()));
      }
      if (tblBorders.getInsideV()!=null) {
        properties.add(new BorderRight(tblBorders.getRight()));
        properties.add(new BorderLeft(tblBorders.getLeft()));
      }           
    }

    if (tblCellMargin != null) {
      if (tblCellMargin.getTop() != null)
        properties.add(new CellMarginTop(tblCellMargin.getTop()));
      if (tblCellMargin.getBottom() != null)
        properties.add(new CellMarginBottom(tblCellMargin.getBottom()));
      if (tblCellMargin.getLeft() != null)
        properties.add(new CellMarginLeft(tblCellMargin.getLeft()));
      if (tblCellMargin.getRight() != null)
        properties.add(new CellMarginRight(tblCellMargin.getRight()));
    }
   
  }
View Full Code Here

TOP

Related Classes of org.docx4j.wml.CTTblCellMar

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.