类的用途
javax.swing.JEditorPane
使用 JEditorPane 的包
包
描述
提供一组“轻量级”(全 Java 语言)组件,尽可能在所有平台上以相同的方式工作。
提供处理可编辑和不可编辑文本组件的类和接口。
提供用于创建 HTML 文本编辑器的类
HTMLEditorKit 和支持类。
-
JEditorPane 在 javax.swing 中的用法
javax.swing 中 JEditorPane 的子类 -
JEditorPane 在 javax.swing.text 中的用法
javax.swing.text 中返回 JEditorPane 的方法修饰符和类型方法描述protected final JEditorPaneStyledEditorKit.StyledTextAction.getEditor(ActionEvent e) 获取动作的目标编辑器。javax.swing.text 中的方法,参数类型为 JEditorPane修饰符和类型方法描述voidEditorKit.deinstall(JEditorPane c) 从 JEditorPane 中删除工具包时调用。voidStyledEditorKit.deinstall(JEditorPane c) 从 JEditorPane 中删除工具包时调用。protected final StyledDocumentStyledEditorKit.StyledTextAction.getStyledDocument(JEditorPane e) 获取与编辑器窗格关联的文档。protected final StyledEditorKitStyledEditorKit.StyledTextAction.getStyledEditorKit(JEditorPane e) 获取与编辑器窗格关联的编辑器工具包。voidEditorKit.install(JEditorPane c) 在将工具包安装到 JEditorPane 时调用。voidStyledEditorKit.install(JEditorPane c) 在将工具包安装到 JEditorPane 中时调用。protected final voidStyledEditorKit.StyledTextAction.setCharacterAttributes(JEditorPane editor, AttributeSet attr, boolean replace) 将给定的属性应用于字符内容。protected final voidStyledEditorKit.StyledTextAction.setParagraphAttributes(JEditorPane editor, AttributeSet attr, boolean replace) 将给定的属性应用于段落。 -
JEditorPane 在 javax.swing.text.html 中的用法
javax.swing.text.html 中的方法,参数类型为 JEditorPane修饰符和类型方法描述protected voidHTMLEditorKit.LinkController.activateLink(int pos, JEditorPane editor) 如果给定位置表示链接,则在关联的 JEditorPane 上调用 linkActivated。voidHTMLEditorKit.deinstall(JEditorPane c) 从 JEditorPane 中删除工具包时调用。protected HTMLDocumentHTMLEditorKit.HTMLTextAction.getHTMLDocument(JEditorPane e) 返回给定JEditorPane的HTMLDocument。protected HTMLEditorKitHTMLEditorKit.HTMLTextAction.getHTMLEditorKit(JEditorPane e) 返回给定JEditorPane的HTMLEditorKit。protected voidHTMLEditorKit.InsertHTMLTextAction.insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag) 在边界插入时调用此方法。protected voidHTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag) 已弃用。从 Java 2 平台 v1.3 开始,使用 insertAtBoundaryprotected voidHTMLEditorKit.InsertHTMLTextAction.insertHTML(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag) HTMLEditorKit.insertHTML 的封面。voidHTMLEditorKit.install(JEditorPane c) 在将工具包安装到 JEditorPane 时调用。