org.apache.poi.ss.usermodel.Hyperlink.getFirstColumn()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(108)

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

Hyperlink.getFirstColumn介绍

[英]Return the column of the first cell that contains the hyperlink
[中]返回包含超链接的第一个单元格的列

代码示例

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

protected HSSFHyperlink(Hyperlink other) {
  if (other instanceof HSSFHyperlink) {
    HSSFHyperlink hlink = (HSSFHyperlink) other;
    record = hlink.record.clone();
    link_type = getType(record);
  }
  else {
    link_type = other.getType();
    record = new HyperlinkRecord();
    setFirstRow(other.getFirstRow());
    setFirstColumn(other.getFirstColumn());
    setLastRow(other.getLastRow());
    setLastColumn(other.getLastColumn());
  }
}

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

/**
 * Create a new XSSFHyperlink. This method is for Internal use only.
 * XSSFHyperlinks can be created by {@link XSSFCreationHelper}.
 * See the <a href="https://poi.apache.org/spreadsheet/quick-guide.html#Hyperlinks">spreadsheet quick-guide</a>
 * for an example.
 *
 * @param other the hyperlink to copy
 */
@Internal //FIXME: change to protected if/when SXSSFHyperlink class is created
public XSSFHyperlink(Hyperlink other) {
  if (other instanceof XSSFHyperlink) {
    XSSFHyperlink xlink = (XSSFHyperlink) other;
    _type = xlink.getType();
    _location = xlink._location;
    _externalRel = xlink._externalRel;
    _ctHyperlink = (CTHyperlink) xlink._ctHyperlink.copy();
  }
  else {
    _type = other.getType();
    _location = other.getAddress();
    _externalRel = null;
    _ctHyperlink = CTHyperlink.Factory.newInstance();
    setCellReference(new CellReference(other.getFirstRow(), other.getFirstColumn()));
  }
}
/**

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

/**
 * Create a new XSSFHyperlink. This method is for Internal use only.
 * XSSFHyperlinks can be created by {@link XSSFCreationHelper}.
 * See the <a href="https://poi.apache.org/spreadsheet/quick-guide.html#Hyperlinks">spreadsheet quick-guide</a>
 * for an example.
 *
 * @param other the hyperlink to copy
 */
@Internal //FIXME: change to protected if/when SXSSFHyperlink class is created
public XSSFHyperlink(Hyperlink other) {
  if (other instanceof XSSFHyperlink) {
    XSSFHyperlink xlink = (XSSFHyperlink) other;
    _type = xlink.getType();
    _location = xlink._location;
    _externalRel = xlink._externalRel;
    _ctHyperlink = (CTHyperlink) xlink._ctHyperlink.copy();
  }
  else {
    _type = other.getType();
    _location = other.getAddress();
    _externalRel = null;
    _ctHyperlink = CTHyperlink.Factory.newInstance();
    setCellReference(new CellReference(other.getFirstRow(), other.getFirstColumn()));
  }
}
/**

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

protected HSSFHyperlink(Hyperlink other) {
  if (other instanceof HSSFHyperlink) {
    HSSFHyperlink hlink = (HSSFHyperlink) other;
    record = hlink.record.clone();
    link_type = getType(record);
  }
  else {
    link_type = other.getType();
    record = new HyperlinkRecord();
    setFirstRow(other.getFirstRow());
    setFirstColumn(other.getFirstColumn());
    setLastRow(other.getLastRow());
    setLastColumn(other.getLastColumn());
  }
}

相关文章