gpt4 book ai didi

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

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

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

XSSFHyperlink.<init>介绍

[英]Create a new XSSFHyperlink. This method is protected to be used only by XSSFCreationHelper
[中]

代码示例

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

/**
 * Create a new XSSFHyperlink.
 *
 * @param type - the type of hyperlink to create, see {@link Hyperlink}
 */
@Override
public XSSFHyperlink createHyperlink(HyperlinkType type) {
  return new XSSFHyperlink(type);
}

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

/**
 * Read hyperlink relations, link them with CTHyperlink beans in this worksheet
 * and initialize the internal array of XSSFHyperlink objects
 */
private void initHyperlinks() {
  hyperlinks = new ArrayList<>();
  if(!worksheet.isSetHyperlinks()) {
    return;
  }
  try {
    PackageRelationshipCollection hyperRels =
        getPackagePart().getRelationshipsByType(XSSFRelation.SHEET_HYPERLINKS.getRelation());
    // Turn each one into a XSSFHyperlink
    for(CTHyperlink hyperlink : worksheet.getHyperlinks().getHyperlinkArray()) {
      PackageRelationship hyperRel = null;
      if(hyperlink.getId() != null) {
        hyperRel = hyperRels.getRelationshipByID(hyperlink.getId());
      }
      hyperlinks.add( new XSSFHyperlink(hyperlink, hyperRel) );
    }
  } catch (InvalidFormatException e){
    throw new POIXMLException(e);
  }
}

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

setHyperlink(new XSSFHyperlink(srcHyperlink));
setHyperlink(srcHyperlink == null ? null : new XSSFHyperlink(srcHyperlink));

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

/**
 * Create a new XSSFHyperlink.
 *
 * @param type - the type of hyperlink to create, see {@link Hyperlink}
 */
@Override
public XSSFHyperlink createHyperlink(HyperlinkType type) {
  return new XSSFHyperlink(type);
}

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

public XSSFHyperlink createHyperlink(int type) {
  return new XSSFHyperlink(type);
}

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

/**
 * Read hyperlink relations, link them with CTHyperlink beans in this worksheet
 * and initialize the internal array of XSSFHyperlink objects
 */
@SuppressWarnings("deprecation") //YK: getXYZArray() array accessors are deprecated in xmlbeans with JDK 1.5 support
private void initHyperlinks() {
  hyperlinks = new ArrayList<XSSFHyperlink>();
  if(!worksheet.isSetHyperlinks()) return;
  try {
    PackageRelationshipCollection hyperRels =
      getPackagePart().getRelationshipsByType(XSSFRelation.SHEET_HYPERLINKS.getRelation());
    // Turn each one into a XSSFHyperlink
    for(CTHyperlink hyperlink : worksheet.getHyperlinks().getHyperlinkArray()) {
      PackageRelationship hyperRel = null;
      if(hyperlink.getId() != null) {
        hyperRel = hyperRels.getRelationshipByID(hyperlink.getId());
      }
      hyperlinks.add( new XSSFHyperlink(hyperlink, hyperRel) );
    }
  } catch (InvalidFormatException e){
    throw new POIXMLException(e);
  }
}

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

/**
 * Read hyperlink relations, link them with CTHyperlink beans in this worksheet
 * and initialize the internal array of XSSFHyperlink objects
 */
private void initHyperlinks() {
  hyperlinks = new ArrayList<>();
  if(!worksheet.isSetHyperlinks()) {
    return;
  }
  try {
    PackageRelationshipCollection hyperRels =
        getPackagePart().getRelationshipsByType(XSSFRelation.SHEET_HYPERLINKS.getRelation());
    // Turn each one into a XSSFHyperlink
    for(CTHyperlink hyperlink : worksheet.getHyperlinks().getHyperlinkArray()) {
      PackageRelationship hyperRel = null;
      if(hyperlink.getId() != null) {
        hyperRel = hyperRels.getRelationshipByID(hyperlink.getId());
      }
      hyperlinks.add( new XSSFHyperlink(hyperlink, hyperRel) );
    }
  } catch (InvalidFormatException e){
    throw new POIXMLException(e);
  }
}

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

setHyperlink(new XSSFHyperlink(srcHyperlink));
setHyperlink(srcHyperlink == null ? null : new XSSFHyperlink(srcHyperlink));

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