public class WDocument extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
org.dom4j.Element |
block(org.dom4j.Element parent,
org.dom4j.Element prev,
org.dom4j.Element element,
Map<String,String> styles) |
void |
flush() |
org.dom4j.Element |
getBody() |
org.dom4j.Element |
getParent(String bookmark,
String tag) |
Wtable |
getTable(String bookmark) |
static int |
index(org.dom4j.Element parent,
org.dom4j.Element element) |
void |
insert(org.dom4j.Element prev,
File file) |
void |
insert(org.dom4j.Element parent,
String html) |
void |
insert(int index,
org.dom4j.Element parent,
String html) |
void |
insertPageBreak(org.dom4j.Element prev) |
String |
listStyle(String key) |
List<String> |
listStyles() |
void |
loadStyle(String html) |
org.dom4j.Element |
p(org.dom4j.Element element) |
org.dom4j.Element |
p(org.dom4j.Element parent,
String text,
Map<String,String> styles) |
org.dom4j.Element |
parent(org.dom4j.Element element,
String... tags) |
org.dom4j.Element |
parseHtml(org.dom4j.Element parent,
org.dom4j.Element prev,
org.dom4j.Element html,
Map<String,String> styles)
解析html
|
org.dom4j.Element |
pp(org.dom4j.Element element)
找到到当前p的上一级(用来创建与当前所在p平级的新p,遇到tc停止)
|
org.dom4j.Element |
pr(org.dom4j.Element element,
Map<String,String> styles) |
org.dom4j.Element |
r(org.dom4j.Element parent,
String text,
Map<String,String> styles) |
void |
reload() |
void |
replace(String key,
String content) |
void |
save() |
void |
setBody(org.dom4j.Element body) |
void |
setOrient(org.dom4j.Element prev,
String orient) |
void |
setOrient(org.dom4j.Element prev,
String orient,
Map<String,String> styles) |
Map<String,String> |
style(org.dom4j.Element element) |
org.dom4j.Element |
table(org.dom4j.Element box,
org.dom4j.Element after,
org.dom4j.Element src) |
org.dom4j.Element |
tc(org.dom4j.Element parent,
org.anyline.entity.html.Td td) |
org.dom4j.Element |
tr(org.dom4j.Element parent,
org.anyline.entity.html.Tr tr) |
public org.dom4j.Element getBody()
public void setBody(org.dom4j.Element body)
public void reload()
public void flush()
public void loadStyle(String html)
public void insert(org.dom4j.Element parent,
String html)
public void insert(int index,
org.dom4j.Element parent,
String html)
public void setOrient(org.dom4j.Element prev,
String orient)
public void insertPageBreak(org.dom4j.Element prev)
public static int index(org.dom4j.Element parent,
org.dom4j.Element element)
public org.dom4j.Element parent(org.dom4j.Element element,
String... tags)
public org.dom4j.Element pp(org.dom4j.Element element)
element - 当前节点public org.dom4j.Element p(org.dom4j.Element element)
public org.dom4j.Element table(org.dom4j.Element box,
org.dom4j.Element after,
org.dom4j.Element src)
public org.dom4j.Element tr(org.dom4j.Element parent,
org.anyline.entity.html.Tr tr)
public org.dom4j.Element tc(org.dom4j.Element parent,
org.anyline.entity.html.Td td)
public org.dom4j.Element block(org.dom4j.Element parent,
org.dom4j.Element prev,
org.dom4j.Element element,
Map<String,String> styles)
public org.dom4j.Element parseHtml(org.dom4j.Element parent,
org.dom4j.Element prev,
org.dom4j.Element html,
Map<String,String> styles)
parent - 上一级prev - 放在prev之后html - htmlstyles - 样式public void insert(org.dom4j.Element prev,
File file)
public void save()
Copyright © 2022. All rights reserved.