javax.swing.text
Class StyledEditorKit.FontFamilyAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by javax.swing.text.TextAction
          extended by javax.swing.text.StyledEditorKit.StyledTextAction
              extended by javax.swing.text.StyledEditorKit.FontFamilyAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
StyledEditorKit

public static class StyledEditorKit.FontFamilyAction
extends StyledEditorKit.StyledTextAction

Sets the font family attribute on the selected text.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
StyledEditorKit.FontFamilyAction(String nm, String family)
          Creates a new instance of FontFamilyAction to set the font family to family.
 
Method Summary
 void actionPerformed(ActionEvent event)
          Performs the action.
 
Methods inherited from class javax.swing.text.StyledEditorKit.StyledTextAction
getEditor, getStyledDocument, getStyledEditorKit, setCharacterAttributes, setParagraphAttributes
 
Methods inherited from class javax.swing.text.TextAction
augmentList, getFocusedComponent, getTextComponent
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyledEditorKit.FontFamilyAction

public StyledEditorKit.FontFamilyAction(String nm,
                                        String family)
Creates a new instance of FontFamilyAction to set the font family to family.

Parameters:
nm - the name of the Action
family - the font family to set
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Performs the action.

Parameters:
event - the ActionEvent that describes the action