public final class HTMLDocument extends Object
IElement.Factory| 限定符和类型 | 字段和说明 |
|---|---|
protected AttributeSet |
m_attrs |
protected List |
m_contents |
protected Tag |
m_tag |
| 构造器和说明 |
|---|
HTMLDocument() |
HTMLDocument(String title,
String encoding) |
| 限定符和类型 | 方法和说明 |
|---|---|
IElementList |
add(IContent content)
Overridden to add to the doc body.
|
IElementList |
add(int index,
IContent content) |
void |
addEmptyP() |
void |
addH(int level,
IContent text,
String classID) |
void |
addH(int level,
String text,
String classID) |
void |
addHR(int size) |
void |
addLINK(String type,
String href)
Adds a <LINK> to the head.
|
void |
addStyle(String css) |
void |
emit(HTMLWriter out)
Overridden to ensure header/footer appear first/last in the body.
|
AttributeSet |
getAttributes() |
IElement |
getBody() |
IContent |
getFooter() |
IElement |
getHead() |
IContent |
getHeader() |
Tag |
getTag() |
String |
getTitle() |
ISimpleElement |
setClass(String classID) |
void |
setFooter(IContent footer) |
void |
setHeader(IContent header) |
IElement |
setText(String text,
boolean nbsp) |
int |
size() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttributes, getTag, setClassprotected final List m_contents
protected final Tag m_tag
protected final AttributeSet m_attrs
public String getTitle()
public IElement getHead()
public IElement getBody()
public IContent getHeader()
public IContent getFooter()
public void setHeader(IContent header)
public void setFooter(IContent footer)
public void emit(HTMLWriter out)
public IElementList add(IContent content)
add 在接口中 IElementListpublic void addStyle(String css)
public void addHR(int size)
public void addEmptyP()
public String toString()
public IElementList add(int index, IContent content)
add 在接口中 IElementListpublic int size()
size 在接口中 IElementListpublic Tag getTag()
getTag 在接口中 ISimpleElementpublic ISimpleElement setClass(String classID)
setClass 在接口中 ISimpleElementpublic AttributeSet getAttributes()
getAttributes 在接口中 ISimpleElementCopyright © 2018. All rights reserved.