org.openl.rules.lang.xls.XlsSheetSourceCodeModule.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(104)

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

XlsSheetSourceCodeModule.<init>介绍

暂无

代码示例

代码示例来源:origin: org.openl.rules/org.openl.rules.webstudio

protected XlsSheetSourceCodeModule getDestinationSheet() {
  XlsSheetSourceCodeModule sourceCodeModule;
  XlsWorkbookSourceCodeModule module = workbooks.get(workbook);
  if (newWorksheet) {
    Sheet sheet = module.getWorkbook().createSheet(getNewWorksheetName());
    sourceCodeModule = new XlsSheetSourceCodeModule(new SimpleSheetLoader(sheet), module);
  } else {
    Sheet sheet = module.getWorkbook().getSheetAt(getWorksheetIndex());
    sourceCodeModule = new XlsSheetSourceCodeModule(new SimpleSheetLoader(sheet), module);
  }
  return sourceCodeModule;
}

代码示例来源:origin: openl-tablets/openl-tablets

protected XlsSheetSourceCodeModule getDestinationSheet() {
  XlsSheetSourceCodeModule sourceCodeModule;
  XlsWorkbookSourceCodeModule module = workbooks.get(workbook);
  if (newWorksheet) {
    Sheet sheet = module.getWorkbook().createSheet(getNewWorksheetName());
    sourceCodeModule = new XlsSheetSourceCodeModule(new SimpleSheetLoader(sheet), module);
  } else {
    Sheet sheet = module.getWorkbook().getSheetAt(getWorksheetIndex());
    sourceCodeModule = new XlsSheetSourceCodeModule(new SimpleSheetLoader(sheet), module);
  }
  return sourceCodeModule;
}

代码示例来源:origin: org.openl.rules/org.openl.rules.webstudio.java

protected XlsSheetSourceCodeModule getDestinationSheet() {
  XlsSheetSourceCodeModule sourceCodeModule;
  XlsWorkbookSourceCodeModule module = workbooks.get(workbook);
  if (newWorksheet) {
    Sheet sheet = module.getWorkbook().createSheet(getNewWorksheetName());
    sourceCodeModule = new XlsSheetSourceCodeModule(sheet, getNewWorksheetName(), module);
  } else {
    Sheet sheet = module.getWorkbook().getSheetAt(getWorksheetIndex());
    sourceCodeModule = new XlsSheetSourceCodeModule(sheet, module.getWorkbook().getSheetName(
        getWorksheetIndex()), module);
  }
  return sourceCodeModule;
}

代码示例来源:origin: openl-tablets/openl-tablets

protected WorksheetSyntaxNode[] createWorksheetNodes(TablePartProcessor tablePartProcessor,
    XlsWorkbookSourceCodeModule workbookSourceModule) {
  int nsheets = workbookSourceModule.getWorkbookLoader().getNumberOfSheets();
  WorksheetSyntaxNode[] sheetNodes = new WorksheetSyntaxNode[nsheets];
  for (int i = 0; i < nsheets; i++) {
    XlsSheetSourceCodeModule sheetSource = new XlsSheetSourceCodeModule(i, workbookSourceModule);
    IGridTable[] tables = new XlsSheetGridModel(sheetSource).getTables();
    sheetNodes[i] = createWorksheetSyntaxNode(tablePartProcessor, sheetSource, tables);
  }
  return sheetNodes;
}

代码示例来源:origin: openl-tablets/openl-tablets

/**
 * Creates virtual {@link XlsSheetGridModel} from poi source sheet.
 *
 * @param sheet poi sheet source
 * @return virtual grid that wraps sheet
 */
private static XlsSheetGridModel createVirtualGrid(Sheet sheet) {
  final StringSourceCodeModule sourceCodeModule = new StringSourceCodeModule("", null);
  final SimpleWorkbookLoader workbookLoader = new SimpleWorkbookLoader(sheet.getWorkbook());
  XlsWorkbookSourceCodeModule mockWorkbookSource = new XlsWorkbookSourceCodeModule(sourceCodeModule,
    workbookLoader);
  XlsSheetSourceCodeModule mockSheetSource = new XlsSheetSourceCodeModule(new SimpleSheetLoader(sheet),
    mockWorkbookSource);
  return new XlsSheetGridModel(mockSheetSource);
}

相关文章