public class LoopRowTableRenderByHeaderPolicy extends Object implements com.deepoove.poi.policy.RenderPolicy
| 构造器和说明 |
|---|
LoopRowTableRenderByHeaderPolicy()
Creates a new policy with default settings.
|
LoopRowTableRenderByHeaderPolicy(Integer dataTemplateRowNum)
Creates a new policy with the specified data template row number.
|
LoopRowTableRenderByHeaderPolicy(String prefix,
String suffix)
Creates a new policy with the specified prefix and suffix.
|
LoopRowTableRenderByHeaderPolicy(String prefix,
String suffix,
Integer dataTemplateRowNum)
Creates a new policy with the specified prefix, suffix, and data template row
number.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
afterloop(org.apache.poi.xwpf.usermodel.XWPFTable table,
Object data)
Hook method called after the loop processing is complete.
|
void |
render(com.deepoove.poi.template.ElementTemplate eleTemplate,
Object data,
com.deepoove.poi.XWPFTemplate template)
Renders the template by processing the data and inserting rows into the table.
|
public LoopRowTableRenderByHeaderPolicy()
public LoopRowTableRenderByHeaderPolicy(Integer dataTemplateRowNum)
dataTemplateRowNum - the row number of the data templatepublic LoopRowTableRenderByHeaderPolicy(String prefix, String suffix)
prefix - the prefix for template tagssuffix - the suffix for template tagspublic LoopRowTableRenderByHeaderPolicy(String prefix, String suffix, Integer dataTemplateRowNum)
prefix - the prefix for template tagssuffix - the suffix for template tagsdataTemplateRowNum - the row number of the data templatepublic void render(com.deepoove.poi.template.ElementTemplate eleTemplate,
Object data,
com.deepoove.poi.XWPFTemplate template)
render 在接口中 com.deepoove.poi.policy.RenderPolicyeleTemplate - the element template to renderdata - the data to rendertemplate - the XWPFTemplate instancecom.deepoove.poi.exception.RenderException - if an error occurs during renderingprotected void afterloop(org.apache.poi.xwpf.usermodel.XWPFTable table,
Object data)
table - the table being processeddata - the data that was processedCopyright © 2025. All rights reserved.