软件包 | 描述 |
---|---|
javax.swing.text.html |
提供类
HTMLEditorKit 和创建HTML文本编辑器支持类。
|
Modifier and Type | Method and Description |
---|---|
protected HTMLDocument |
HTMLEditorKit.HTMLTextAction.getHTMLDocument(JEditorPane e) |
Modifier and Type | Method and Description |
---|---|
protected int |
HTMLEditorKit.HTMLTextAction.elementCountToTag(HTMLDocument doc, int offset, HTML.Tag tag)
返回的元素个数,从最深的叶,需要代表
tag 元素。
|
protected Element |
HTMLEditorKit.HTMLTextAction.findElementMatchingTag(HTMLDocument doc, int offset, HTML.Tag tag)
返回
offset 匹配
tag 最深的元素。
|
protected Element[] |
HTMLEditorKit.HTMLTextAction.getElementsAt(HTMLDocument doc, int offset)
返回的数组元素包含
offset 。
|
protected void |
HTMLEditorKit.InsertHTMLTextAction.insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)
这是在插入到一个边界时调用的。
|
protected void |
HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)
过时的。
作为java 2平台V1.3,使用insertatboundary
|
void |
HTMLEditorKit.insertHTML(HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag insertTag)
插入HTML到一个已经存在的文件。
|
protected void |
HTMLEditorKit.InsertHTMLTextAction.insertHTML(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag)
一套htmleditorkit.inserthtml。
|
Constructor and Description |
---|
HTMLWriter(Writer w, HTMLDocument doc)
创建一个新的htmlwriter。
|
HTMLWriter(Writer w, HTMLDocument doc, int pos, int len)
创建一个新的htmlwriter。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.