Examples of TblBorders


Examples of org.docx4j.wml.TblBorders

    if (tblPr==null ) {
      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)
View Full Code Here

Examples of org.docx4j.wml.TblBorders


  @Override
  public void set(TblPr tblPr) {
    if (tblPr.getTblBorders()==null) {
      TblBorders tblBorders = Context.getWmlObjectFactory().createTblBorders();
      tblPr.setTblBorders(tblBorders);
    }
    tblPr.getTblBorders().setBottom( (CTBorder)this.getObject() );
  }
View Full Code Here

Examples of org.docx4j.wml.TblBorders


  @Override
  public void set(TblPr tblPr) {
    if (tblPr.getTblBorders()==null) {
      TblBorders tblBorders = Context.getWmlObjectFactory().createTblBorders();
      tblPr.setTblBorders(tblBorders);
    }
    tblPr.getTblBorders().setBottom( (CTBorder)this.getObject() );
  }
View Full Code Here

Examples of org.docx4j.wml.TblBorders

   
    result.append("#" + TableWriter.getId(idx) + " td { ");
      List<Property> properties =  new ArrayList<Property>();
      if (s.getTblPr()!=null
          && s.getTblPr().getTblBorders()!=null ) {
        TblBorders tblBorders = s.getTblPr().getTblBorders();
        if (tblBorders.getInsideH()!=null) {
          if (tblBorders.getInsideH().getVal()==STBorder.NONE
              || tblBorders.getInsideH().getVal()==STBorder.NIL
              || tblBorders.getInsideH().getSz()==BigInteger.ZERO ) {
            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
              || tblBorders.getInsideV().getVal()==STBorder.NIL
              || tblBorders.getInsideV().getSz()==BigInteger.ZERO ) {
            properties.add( new AdHocProperty("border-left-style", "none", null, null));
            properties.add( new AdHocProperty("border-left-width", "0mm", null, null));
            properties.add( new AdHocProperty("border-right-style", "none", null, null));
            properties.add( new AdHocProperty("border-right-width", "0mm", null, null));
          } else {
            properties.add( new BorderRight(tblBorders.getRight() ));
            properties.add( new BorderLeft(tblBorders.getLeft() ));
          }
        }
      }
      if (s.getTcPr()!=null ) {
        PropertyFactory.createProperties(properties, s.getTcPr() );
View Full Code Here

Examples of org.docx4j.wml.TblBorders

      if (tblPr.getTblInd()!=null)
        properties.add(new org.docx4j.model.properties.table.Indent(tblPr.getTblInd()) );
    }
   
    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)
        properties.add(new BorderRight(tblBorders.getRight()) )
      // TODO
//      if (tblBorders.getInsideH()!=null)
//        properties.add(new BorderRight(tblBorders.getRight()) );       
//      if (tblBorders.getInsideV()!=null)
//        properties.add(new BorderRight(tblBorders.getRight()) );       
View Full Code Here

Examples of org.docx4j.wml.TblBorders


  @Override
  public void set(TblPr tblPr) {
    if (tblPr.getTblBorders()==null) {
      TblBorders tblBorders = Context.getWmlObjectFactory().createTblBorders();
      tblPr.setTblBorders(tblBorders);
    }
    tblPr.getTblBorders().setTop( (CTBorder)this.getObject() );
  }
View Full Code Here

Examples of org.docx4j.wml.TblBorders

  }
 
  @Override
  public void set(TblPr tblPr) {
    if (tblPr.getTblBorders()==null) {
      TblBorders tblBorders = Context.getWmlObjectFactory().createTblBorders();
      tblPr.setTblBorders(tblBorders);
    }
    tblPr.getTblBorders().setRight( (CTBorder)this.getObject() );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.