public class MultipleRowTableRenderPolicy extends Object implements com.deepoove.poi.policy.RenderPolicy
该插件旨在替换多行表格内容
单行表格循环可以使用LoopRowTableRenderPolicy
RenderPolicy| 构造器和说明 |
|---|
MultipleRowTableRenderPolicy() |
MultipleRowTableRenderPolicy(String prefix,
String suffix) |
MultipleRowTableRenderPolicy(String multiplePrefix,
String multipleSuffix,
String prefix,
String suffix) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected com.deepoove.poi.template.run.RunTemplate |
cast2runTemplate(com.deepoove.poi.template.MetaTemplate template) |
protected void |
checkTargetIsTable(org.apache.poi.xwpf.usermodel.XWPFRun run,
String message) |
protected List<org.apache.poi.xwpf.usermodel.XWPFTableRow> |
getAllTemplateRow(org.apache.poi.xwpf.usermodel.XWPFTable table,
com.deepoove.poi.XWPFTemplate template,
int startIndex) |
protected int |
getMultipleRowNum(com.deepoove.poi.XWPFTemplate template) |
protected int |
getRowIndex(org.apache.poi.xwpf.usermodel.XWPFTableRow row) |
protected void |
removeTableRow(org.apache.poi.xwpf.usermodel.XWPFTable table,
int startIndex,
int size) |
void |
render(com.deepoove.poi.template.ElementTemplate eleTemplate,
Object data,
com.deepoove.poi.XWPFTemplate template) |
protected void |
setTableRow(org.apache.poi.xwpf.usermodel.XWPFTable table,
org.apache.poi.xwpf.usermodel.XWPFTableRow row,
int pos) |
public void render(com.deepoove.poi.template.ElementTemplate eleTemplate,
Object data,
com.deepoove.poi.XWPFTemplate template)
render 在接口中 com.deepoove.poi.policy.RenderPolicyprotected List<org.apache.poi.xwpf.usermodel.XWPFTableRow> getAllTemplateRow(org.apache.poi.xwpf.usermodel.XWPFTable table, com.deepoove.poi.XWPFTemplate template, int startIndex) throws CloneNotSupportedException
protected void removeTableRow(org.apache.poi.xwpf.usermodel.XWPFTable table,
int startIndex,
int size)
protected com.deepoove.poi.template.run.RunTemplate cast2runTemplate(com.deepoove.poi.template.MetaTemplate template)
protected int getMultipleRowNum(com.deepoove.poi.XWPFTemplate template)
throws CloneNotSupportedException
protected void checkTargetIsTable(org.apache.poi.xwpf.usermodel.XWPFRun run,
String message)
protected void setTableRow(org.apache.poi.xwpf.usermodel.XWPFTable table,
org.apache.poi.xwpf.usermodel.XWPFTableRow row,
int pos)
protected int getRowIndex(org.apache.poi.xwpf.usermodel.XWPFTableRow row)
Copyright © 2021. All rights reserved.