org.apache.poi.hssf.usermodel.HSSFWorkbook.findExistingBuiltinNameRecordIdx()方法的使用及代码示例

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

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

HSSFWorkbook.findExistingBuiltinNameRecordIdx介绍

暂无

代码示例

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

HSSFName getBuiltInName(byte builtinCode, int sheetIndex) {
 int index = findExistingBuiltinNameRecordIdx(sheetIndex, builtinCode);
 return (index < 0) ? null : names.get(index);
}

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

private NameRecord getBuiltinNameRecord(byte builtinCode) {
  int sheetIndex = _workbook.getSheetIndex(this);
  int recIndex =
      _workbook.findExistingBuiltinNameRecordIdx(sheetIndex, builtinCode);
  if (recIndex == -1) {
    return null;
  }
  return _workbook.getNameRecord(recIndex);
}

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

int filterDbNameIndex = findExistingBuiltinNameRecordIdx(sheetIndex, NameRecord.BUILTIN_FILTER_DB);
if (filterDbNameIndex != -1) {
  NameRecord newNameRecord = workbook.cloneFilter(filterDbNameIndex, newSheetIndex);

代码示例来源:origin: com.haulmont.thirdparty/poi

HSSFName getBuiltInName(byte builtinCode, int sheetIndex) {
 int index = findExistingBuiltinNameRecordIdx(sheetIndex, builtinCode);
 if (index < 0) {
  return null;
 } else {
  return names.get(index);
 }
}

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

HSSFName getBuiltInName(byte builtinCode, int sheetIndex) {
 int index = findExistingBuiltinNameRecordIdx(sheetIndex, builtinCode);
 return (index < 0) ? null : names.get(index);
}

代码示例来源:origin: com.haulmont.thirdparty/poi

private NameRecord getBuiltinNameRecord(byte builtinCode) {
  int sheetIndex = _workbook.getSheetIndex(this);
  int recIndex =
      _workbook.findExistingBuiltinNameRecordIdx(sheetIndex, builtinCode);
  if (recIndex == -1) {
    return null;
  }
  return _workbook.getNameRecord(recIndex);
}

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

private NameRecord getBuiltinNameRecord(byte builtinCode) {
  int sheetIndex = _workbook.getSheetIndex(this);
  int recIndex =
      _workbook.findExistingBuiltinNameRecordIdx(sheetIndex, builtinCode);
  if (recIndex == -1) {
    return null;
  }
  return _workbook.getNameRecord(recIndex);
}

代码示例来源:origin: com.haulmont.thirdparty/poi

int filterDbNameIndex = findExistingBuiltinNameRecordIdx(sheetIndex, NameRecord.BUILTIN_FILTER_DB);
if (filterDbNameIndex != -1) {
  NameRecord newNameRecord = workbook.cloneFilter(filterDbNameIndex, newSheetIndex);

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

int filterDbNameIndex = findExistingBuiltinNameRecordIdx(sheetIndex, NameRecord.BUILTIN_FILTER_DB);
if (filterDbNameIndex != -1) {
  NameRecord newNameRecord = workbook.cloneFilter(filterDbNameIndex, newSheetIndex);

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

startColumn == -1 && endColumn == -1 && startRow == -1 && endRow == -1;
int rowColHeaderNameIndex = findExistingBuiltinNameRecordIdx(sheetIndex, NameRecord.BUILTIN_PRINT_TITLE);
if (removingRange) {
  if (rowColHeaderNameIndex >= 0) {

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

/**
 * create an HSSFSheet from an existing sheet in the HSSFWorkbook.
 *
 * @return HSSFSheet representing the cloned sheet.
 */
public HSSFSheet cloneSheet(int sheetIndex) {
  validateSheetIndex(sheetIndex);
  HSSFSheet srcSheet = _sheets.get(sheetIndex);
  String srcName = workbook.getSheetName(sheetIndex);
  HSSFSheet clonedSheet = srcSheet.cloneSheet(this);
  clonedSheet.setSelected(false);
  clonedSheet.setActive(false);
  String name = getUniqueSheetName(srcName);
  int newSheetIndex = _sheets.size();
  _sheets.add(clonedSheet);
  workbook.setSheetName(newSheetIndex, name);
  // Check this sheet has an autofilter, (which has a built-in NameRecord at workbook level)
  int filterDbNameIndex = findExistingBuiltinNameRecordIdx(sheetIndex, NameRecord.BUILTIN_FILTER_DB);
  if (filterDbNameIndex != -1) {
    NameRecord newNameRecord = workbook.cloneFilter(filterDbNameIndex, newSheetIndex);
    HSSFName newName = new HSSFName(this, newNameRecord);
    names.add(newName);
  }
  // TODO - maybe same logic required for other/all built-in name records
  workbook.cloneDrawings(clonedSheet.getSheet());
  return clonedSheet;
}

相关文章

HSSFWorkbook类方法