JavaTM 2 Platform
Standard Ed. 6

javax.swing.text
類別 StyledEditorKit.FontFamilyAction

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

public static class StyledEditorKit.FontFamilyAction
extends StyledEditorKit.StyledTextAction

在相關的 JEditorPane 中設置字體系列的操作。此方法將使用 ActionEvent 上作為命令字元串指定的系列(如果有),否則將使用過去初始化的系列。

警告:此類別的已序列化物件與以後的 Swing 版本不相容。當前序列化支持適用於短期存儲或運行相同 Swing 版本的應用程序之間的 RMI。從 1.4 版本開始,已在 java.beans 套件中添加了支持所有 JavaBeansTM 長期存儲的功能。請參見 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
 
建構子摘要
StyledEditorKit.FontFamilyAction(String nm, String family)
          創建新的 FontFamilyAction。
 
方法摘要
 void actionPerformed(ActionEvent e)
          設置字體系列。
 
從類別 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
 
從類別 java.lang.Object 繼承的方法
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

建構子詳細資訊

StyledEditorKit.FontFamilyAction

public StyledEditorKit.FontFamilyAction(String nm,
                                        String family)
創建新的 FontFamilyAction。

參數:
nm - 操作名
family - 字體系列
方法詳細資訊

actionPerformed

public void actionPerformed(ActionEvent e)
設置字體系列。

參數:
e - 事件

JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

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