JavaTM 2 Platform
Standard Ed. 6

类 javax.swing.text.TextAction
的使用

使用 TextAction 的软件包
javax.swing.text 提供类 HTMLEditorKit 和创建 HTML 文本编辑器的支持类。 
javax.swing.text.html 提供类 HTMLEditorKit 和创建 HTML 文本编辑器的支持类。 
 

javax.swing.textTextAction 的使用
 

javax.swing.textTextAction 的子类
static class DefaultEditorKit.BeepAction
          创建蜂鸣声。
static class DefaultEditorKit.CopyAction
          复制选定的区域并将其内容放入系统剪贴板中。
static class DefaultEditorKit.CutAction
          剪切选定的区域并将其内容放入系统剪贴板中。
static class DefaultEditorKit.DefaultKeyTypedAction
          如果接收到键输入事件 并且无 keymap 输入,则默认执行该动作。
static class DefaultEditorKit.InsertBreakAction
          在文档中放置行/段落中断。
static class DefaultEditorKit.InsertContentAction
          将内容置于关联的文档中。
static class DefaultEditorKit.InsertTabAction
          将一个制表符置于文档中。
static class DefaultEditorKit.PasteAction
          将系统剪贴板内容粘贴到选定区域,如果未选中任何内容,则粘贴到插入符前面。
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
          切换下划线属性的操作。
 

javax.swing.text.htmlTextAction 的使用
 

javax.swing.text.htmlTextAction 的子类
static class HTMLEditorKit.HTMLTextAction
          提供某些便捷方法的抽象 Action,这些便捷方法对于将 HTML 插入现有文档可能很有用。
static class HTMLEditorKit.InsertHTMLTextAction
          InsertHTMLTextAction 可用于将任意 HTML 字符串插入现有 HTML 文档。
 


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only