Package org.docx4j.model.properties.table

Examples of org.docx4j.model.properties.table.BorderTop


    ctBrdr = Context.getWmlObjectFactory().createCTBorder();
    ctBrdr.setVal(STBorder.NONE);
    tableProperties.add(new BorderRight(ctBrdr));
    ctBrdr = Context.getWmlObjectFactory().createCTBorder();
    ctBrdr.setVal(STBorder.NONE);
    tableProperties.add(new BorderTop(ctBrdr));
    ctBrdr = Context.getWmlObjectFactory().createCTBorder();
    ctBrdr.setVal(STBorder.NONE);
    tableProperties.add(new BorderBottom(ctBrdr));
    shd.setColor("auto");
    shd.setFill("auto");
View Full Code Here


   
  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()));
View Full Code Here

            properties.add( new AdHocProperty("border-top-style", "none", null, null));
            properties.add( new AdHocProperty("border-top-width", "0mm", null, null));
            properties.add( new AdHocProperty("border-bottom-style", "none", null, null));
            properties.add( new AdHocProperty("border-bottom-width", "0mm", null, null));
          } else {
            properties.add( new BorderTop(tblBorders.getTop() ));
            properties.add( new BorderBottom(tblBorders.getBottom() ));
          }
        }
        if (tblBorders.getInsideV()!=null) {
          if (tblBorders.getInsideV().getVal()==STBorder.NONE
View Full Code Here

    }
   
    if (tblPr.getTblBorders()!=null) {
      TblBorders tblBorders = tblPr.getTblBorders();
      if (tblBorders.getTop()!=null)
        properties.add(new BorderTop(tblBorders.getTop()) );       
      if (tblBorders.getBottom()!=null)
        properties.add(new BorderBottom(tblBorders.getBottom()) );       
      if (tblBorders.getLeft()!=null)
        properties.add(new BorderLeft(tblBorders.getLeft()) );       
      if (tblBorders.getRight()!=null)
View Full Code Here

  public static void createPropertiesTable(List<Property> properties, TcPr tcPr) {
   
    if (tcPr.getTcBorders()!=null) {
      TcPrInner.TcBorders tcBorders = tcPr.getTcBorders();
      if (tcBorders.getTop()!=null)
        properties.add(new BorderTop(tcBorders.getTop()) );       
      if (tcBorders.getBottom()!=null)
        properties.add(new BorderBottom(tcBorders.getBottom()) );       
      if (tcBorders.getLeft()!=null)
        properties.add(new BorderLeft(tcBorders.getLeft()) );       
      if (tcBorders.getRight()!=null)
View Full Code Here

TOP

Related Classes of org.docx4j.model.properties.table.BorderTop

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.