java.lang.Object
javax.swing.AbstractAction
javax.swing.text.TextAction
javax.swing.text.StyledEditorKit.StyledTextAction
javax.swing.text.StyledEditorKit.FontFamilyAction
- 所有已实现的接口:
ActionListener,Serializable,Cloneable,EventListener,Action
- 封闭类:
StyledEditorKit
在关联的 JEditorPane 中设置字体系列的操作。如果有,这将使用在 ActionEvent 上指定为命令字符串的系列,否则将使用初始化的系列。
Warning: 此类的序列化对象将与未来的 Swing 版本不兼容。当前的序列化支持适用于运行相同版本 Swing 的应用程序之间的短期存储或 RMI。从 1.4 开始,对所有 JavaBeans 的长期存储的支持已添加到 java.beans 包中。请参阅 XMLEncoder 。
-
字段摘要
在类 javax.swing.AbstractAction 中声明的字段
changeSupport, enabled在接口 javax.swing.Action 中声明的字段
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
构造方法总结
构造方法 -
方法总结
在类 javax.swing.text.StyledEditorKit.StyledTextAction 中声明的方法
getEditor, getStyledDocument, getStyledEditorKit, setCharacterAttributes, setParagraphAttributes在类 javax.swing.text.TextAction 中声明的方法
augmentList, getFocusedComponent, getTextComponent在类 javax.swing.AbstractAction 中声明的方法
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
构造方法详细信息
-
FontFamilyAction
创建一个新的 FontFamilyAction。- 参数:
nm- 动作名称family- 字体系列
-
-
方法详情
-
actionPerformed
设置字体系列。- 参数:
e- 事件
-