类的用途
javax.swing.text.EditorKit
使用 EditorKit 的包
包
描述
提供一组“轻量级”(全 Java 语言)组件,尽可能在所有平台上以相同的方式工作。
提供一个接口和许多抽象类,Swing 使用这些抽象类来提供其可插入的外观功能。
提供根据基本外观构建的用户界面对象。
提供组合了两种或多种外观的用户界面对象。
提供处理可编辑和不可编辑文本组件的类和接口。
提供用于创建 HTML 文本编辑器的类
HTMLEditorKit 和支持类。
提供用于创建 Rich-Text-Format 文本编辑器的类 (
RTFEditorKit)。
-
EditorKit 在 javax.swing 中的用法
javax.swing 中返回 EditorKit 的方法修饰符和类型方法描述protected EditorKitJEditorPane.createDefaultEditorKit()为首次创建组件时创建默认编辑器工具包 (PlainEditorKit)。protected EditorKitJTextPane.createDefaultEditorKit()创建默认使用的EditorKit。static EditorKitJEditorPane.createEditorKitForContentType(String type) 从编辑器工具包的默认注册表中为给定类型创建一个处理程序。JEditorPane.getEditorKit()获取当前安装的用于处理内容的工具包。JEditorPane.getEditorKitForContentType(String type) 获取编辑器工具包以用于给定类型的内容。javax.swing 中的方法,参数类型为 EditorKit修饰符和类型方法描述voidJEditorPane.setEditorKit(EditorKit kit) 设置当前安装的用于处理内容的工具包。final voidJTextPane.setEditorKit(EditorKit kit) 设置当前安装的用于处理内容的工具包。voidJEditorPane.setEditorKitForContentType(String type, EditorKit k) 直接设置编辑器工具包以用于给定类型。 -
EditorKit 在 javax.swing.plaf 中的用法
javax.swing.plaf 中返回 EditorKit 的方法 -
EditorKit 在 javax.swing.plaf.basic 中的用法
javax.swing.plaf.basic 中返回 EditorKit 的方法修饰符和类型方法描述BasicEditorPaneUI.getEditorKit(JTextComponent tc) 获取 UI 的 EditorKit。BasicTextUI.getEditorKit(JTextComponent tc) 获取 UI 的 EditorKit。 -
EditorKit 在 javax.swing.plaf.multi 中的用法
javax.swing.plaf.multi 中返回 EditorKit 的方法 -
EditorKit 在 javax.swing.text 中的用法
javax.swing.text 中 EditorKit 的子类修饰符和类型类描述class这是文本组件作为某些 type 文本文档的合理功能编辑器所需的一组东西。class这是文本组件作为某些 type 文本文档的合理功能编辑器所需的一组东西。 -
EditorKit 在 javax.swing.text.html 中的用法
-
EditorKit 在 javax.swing.text.rtf 中的用法