public class HTMLDoc extends TextDoc
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
TYPE_COMBO |
static int |
TYPE_INPUT |
encoding, outputStream, pageMarginBottom, pageMarginLeft, pageMarginRight, pageMarginTop, pageSize| 构造器和说明 |
|---|
HTMLDoc(OutputStream outputStream) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addHrule(Attributes attrs)
水平线
|
void |
addImage(Attributes attrs)
添加图片
|
void |
close()
关闭文档
|
boolean |
isOpen()
文档是否打开
|
void |
newPage()
添加新页
|
boolean |
open()
打开文档
|
void |
setDeclare(String declare) |
void |
setExtra(String extra) |
void |
setJSONObject(com.alibaba.fastjson.JSONObject jsonObject) |
void |
setLinkPaths(List<String> css_paths,
List<String> js_paths) |
void |
setType(int type) |
void |
writeBlock(String blockName,
List<TextChunk> chunkList)
文本框
|
void |
writeTable(TextTable table)
添加表格
|
setEncoding, setPageMargin, setPageSizepublic static final int TYPE_INPUT
public static final int TYPE_COMBO
public HTMLDoc(OutputStream outputStream)
public void setJSONObject(com.alibaba.fastjson.JSONObject jsonObject)
public void setDeclare(String declare)
public void setExtra(String extra)
public void setType(int type)
public void writeBlock(String blockName, List<TextChunk> chunkList) throws IOException
TextDocwriteBlock 在类中 TextDocblockName - 文本框类型名称chunkList - 文本内容集合IOException - IO异常public void addHrule(Attributes attrs)
TextDocpublic void addImage(Attributes attrs)
TextDocpublic void writeTable(TextTable table)
TextDocwriteTable 在类中 TextDoctable - 表格Copyright © 2021. All rights reserved.