gpt4 book ai didi

org.apache.poi.xssf.usermodel.XSSFComment.avoidXmlbeansCorruptPointer()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 15:43:05 26 4
gpt4 key购买 nike

本文整理了Java中org.apache.poi.xssf.usermodel.XSSFComment.avoidXmlbeansCorruptPointer()方法的一些代码示例,展示了XSSFComment.avoidXmlbeansCorruptPointer()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSSFComment.avoidXmlbeansCorruptPointer()方法的具体详情如下:
包路径:org.apache.poi.xssf.usermodel.XSSFComment
类名称:XSSFComment
方法名:avoidXmlbeansCorruptPointer

XSSFComment.avoidXmlbeansCorruptPointer介绍

暂无

代码示例

代码示例来源:origin: org.apache.poi/poi-ooxml

/**
 * Creates a new XSSFComment, associated with a given
 *  low level comment object.
 */
public XSSFComment(CommentsTable comments, CTComment comment, CTShape vmlShape) {
  _comment = comment;
  _comments = comments;
  _vmlShape = vmlShape;
  // we potentially need to adjust the column/row information in the shape
  // the same way as we do in setRow()/setColumn()
  if(comment != null && vmlShape != null && vmlShape.sizeOfClientDataArray() > 0) {
    CellReference ref = new CellReference(comment.getRef());
    CTClientData clientData = vmlShape.getClientDataArray(0);
    clientData.setRowArray(0, new BigInteger(String.valueOf(ref.getRow())));
    clientData.setColumnArray(0, new BigInteger(String.valueOf(ref.getCol())));
    
    avoidXmlbeansCorruptPointer(vmlShape);
  }
}

代码示例来源:origin: org.apache.poi/poi-ooxml

@Override
public void setAddress(CellAddress address) {
  CellAddress oldRef = new CellAddress(_comment.getRef());
  if (address.equals(oldRef)) {
    // nothing to do
    return;
  }
  
  _comment.setRef(address.formatAsString());
  _comments.referenceUpdated(oldRef, _comment);
  
  if (_vmlShape != null) {
    CTClientData clientData = _vmlShape.getClientDataArray(0);
    clientData.setRowArray(0, new BigInteger(String.valueOf(address.getRow())));
    clientData.setColumnArray(0, new BigInteger(String.valueOf(address.getColumn())));
        avoidXmlbeansCorruptPointer(_vmlShape);
  }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * Creates a new XSSFComment, associated with a given
 *  low level comment object.
 */
public XSSFComment(CommentsTable comments, CTComment comment, CTShape vmlShape) {
  _comment = comment;
  _comments = comments;
  _vmlShape = vmlShape;
  // we potentially need to adjust the column/row information in the shape
  // the same way as we do in setRow()/setColumn()
  if(comment != null && vmlShape != null && vmlShape.sizeOfClientDataArray() > 0) {
    CellReference ref = new CellReference(comment.getRef());
    CTClientData clientData = vmlShape.getClientDataArray(0);
    clientData.setRowArray(0, new BigInteger(String.valueOf(ref.getRow())));
    clientData.setColumnArray(0, new BigInteger(String.valueOf(ref.getCol())));
    
    avoidXmlbeansCorruptPointer(vmlShape);
  }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

@Override
public void setAddress(CellAddress address) {
  CellAddress oldRef = new CellAddress(_comment.getRef());
  if (address.equals(oldRef)) {
    // nothing to do
    return;
  }
  
  _comment.setRef(address.formatAsString());
  _comments.referenceUpdated(oldRef, _comment);
  
  if (_vmlShape != null) {
    CTClientData clientData = _vmlShape.getClientDataArray(0);
    clientData.setRowArray(0, new BigInteger(String.valueOf(address.getRow())));
    clientData.setColumnArray(0, new BigInteger(String.valueOf(address.getColumn())));
        avoidXmlbeansCorruptPointer(_vmlShape);
  }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com