| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
javax.swing.text.StyledEditorKit
public class StyledEditorKit
这是文本组件针对某些类型 的文本文档要成为合理发挥编辑器功能所需的实现集合。此实现提供了一个默认实现,该默认实现把文本当做样式化文本,并提供编辑样式化文本的最小操作集合。
| 嵌套类摘要 | |
|---|---|
| static class | StyledEditorKit.AlignmentAction设置段落对齐的操作。 | 
| static class | StyledEditorKit.BoldAction切换粗体属性的操作。 | 
| static class | StyledEditorKit.FontFamilyAction在相关的 JEditorPane 中设置字体系列的操作。 | 
| static class | StyledEditorKit.FontSizeAction设置关联的 JEditorPane 中字体大小的操作。 | 
| static class | StyledEditorKit.ForegroundAction设置前景色的操作。 | 
| static class | StyledEditorKit.ItalicAction切换斜体属性的一种操作。 | 
| static class | StyledEditorKit.StyledTextAction假定是在安装有 StyledEditorKit(或者子类)的 JEditorPane 上触发的操作。 | 
| static class | StyledEditorKit.UnderlineAction切换下划线属性的操作。 | 
| 字段摘要 | 
|---|
| 构造方法摘要 | |
|---|---|
| StyledEditorKit()创建供样式化文档使用新的 EditorKit。 | |
| 方法摘要 | |
|---|---|
|  Object | clone()创建此编辑器工具包的一个副本。 | 
|  Document | createDefaultDocument()创建一个适合此编辑器类型的未初始化文本存储模型。 | 
| protected  void | createInputAttributes(Element element,
                      MutableAttributeSet set)将 element的 AttributeSet 键/值复制到set中。 | 
|  void | deinstall(JEditorPane c)工具包从 JEditorPane 移除时调用。 | 
|  Action[] | getActions()获取编辑器的命令列表。 | 
|  Element | getCharacterAttributeRun()获取表示该插入符处当前运行的字符属性的元素。 | 
|  MutableAttributeSet | getInputAttributes()获取该窗格的输入属性。 | 
|  ViewFactory | getViewFactory()获取一个适合供由此包所产生的任何模型来产生视图的工厂。 | 
|  void | install(JEditorPane c)工具包安装到 JEditorPane 时调用。 | 
| 从类 javax.swing.text.DefaultEditorKit 继承的方法 | 
|---|
| createCaret, getContentType, read, read, write, write | 
| 从类 java.lang.Object 继承的方法 | 
|---|
| equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| 构造方法详细信息 | 
|---|
public StyledEditorKit()
| 方法详细信息 | 
|---|
public MutableAttributeSet getInputAttributes()
public Element getCharacterAttributeRun()
public Action[] getActions()
DefaultEditorKit 中的 getActionspublic Document createDefaultDocument()
DefaultEditorKit 中的 createDefaultDocumentpublic void install(JEditorPane c)
EditorKit 中的 installc - 该 JEditorPanepublic void deinstall(JEditorPane c)
EditorKit 中的 deinstallc - 该 JEditorPanepublic ViewFactory getViewFactory()
DefaultEditorKit 中的 getViewFactorypublic Object clone()
EditorKit 中的 cloneCloneable
protected void createInputAttributes(Element element,
                                     MutableAttributeSet set)
element 的 AttributeSet 键/值复制到 set 中。这操作不复制组件、图标或者元素名称属性。子类可能希望修改此处要复制什么,不复制什么。确保首先移除 set 中的所有属性。这在插入符移到一个不同位置时调用。
| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。