javax.swing.text
Class StyledEditorKit.BoldAction

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.AbstractAction sample code for javax.swing.AbstractAction definition code for javax.swing.AbstractAction 
      extended by javax.swing.text.TextAction sample code for javax.swing.text.TextAction definition code for javax.swing.text.TextAction 
          extended by javax.swing.text.StyledEditorKit.StyledTextAction sample code for javax.swing.text.StyledEditorKit.StyledTextAction definition code for javax.swing.text.StyledEditorKit.StyledTextAction 
              extended by javax.swing.text.StyledEditorKit.BoldAction
All Implemented Interfaces:
ActionListener sample code for java.awt.event.ActionListener definition code for java.awt.event.ActionListener , Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable , EventListener sample code for java.util.EventListener definition code for java.util.EventListener , Action sample code for javax.swing.Action definition code for javax.swing.Action
Enclosing class:
StyledEditorKit sample code for javax.swing.text.StyledEditorKit definition code for javax.swing.text.StyledEditorKit

public static class StyledEditorKit.BoldAction
extends StyledEditorKit.StyledTextAction sample code for javax.swing.text.StyledEditorKit.StyledTextAction definition code for javax.swing.text.StyledEditorKit.StyledTextAction

An action to toggle the bold attribute.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see XMLEncoder sample code for java.beans.XMLEncoder definition code for java.beans.XMLEncoder .

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction sample code for javax.swing.AbstractAction definition code for javax.swing.AbstractAction
changeSupport sample code for javax.swing.AbstractAction.changeSupport definition code for javax.swing.AbstractAction.changeSupport , enabled sample code for javax.swing.AbstractAction.enabled definition code for javax.swing.AbstractAction.enabled
 
Fields inherited from interface javax.swing.Action sample code for javax.swing.Action definition code for javax.swing.Action
ACCELERATOR_KEY sample code for javax.swing.Action.ACCELERATOR_KEY definition code for javax.swing.Action.ACCELERATOR_KEY , ACTION_COMMAND_KEY sample code for javax.swing.Action.ACTION_COMMAND_KEY definition code for javax.swing.Action.ACTION_COMMAND_KEY , DEFAULT sample code for javax.swing.Action.DEFAULT definition code for javax.swing.Action.DEFAULT , LONG_DESCRIPTION sample code for javax.swing.Action.LONG_DESCRIPTION definition code for javax.swing.Action.LONG_DESCRIPTION , MNEMONIC_KEY sample code for javax.swing.Action.MNEMONIC_KEY definition code for javax.swing.Action.MNEMONIC_KEY , NAME sample code for javax.swing.Action.NAME definition code for javax.swing.Action.NAME , SHORT_DESCRIPTION sample code for javax.swing.Action.SHORT_DESCRIPTION definition code for javax.swing.Action.SHORT_DESCRIPTION , SMALL_ICON sample code for javax.swing.Action.SMALL_ICON definition code for javax.swing.Action.SMALL_ICON
 
Constructor Summary
StyledEditorKit.BoldAction sample code for javax.swing.text.StyledEditorKit.BoldAction.StyledEditorKit.BoldAction() definition code for javax.swing.text.StyledEditorKit.BoldAction.StyledEditorKit.BoldAction() ()
          Constructs a new BoldAction.
 
Method Summary
 void actionPerformed sample code for javax.swing.text.StyledEditorKit.BoldAction.actionPerformed(java.awt.event.ActionEvent) definition code for javax.swing.text.StyledEditorKit.BoldAction.actionPerformed(java.awt.event.ActionEvent) (ActionEvent sample code for java.awt.event.ActionEvent definition code for java.awt.event.ActionEvent  e)
          Toggles the bold attribute.
 
Methods inherited from class javax.swing.text.StyledEditorKit.StyledTextAction sample code for javax.swing.text.StyledEditorKit.StyledTextAction definition code for javax.swing.text.StyledEditorKit.StyledTextAction
getEditor sample code for javax.swing.text.StyledEditorKit.StyledTextAction.getEditor(java.awt.event.ActionEvent) definition code for javax.swing.text.StyledEditorKit.StyledTextAction.getEditor(java.awt.event.ActionEvent) , getStyledDocument sample code for javax.swing.text.StyledEditorKit.StyledTextAction.getStyledDocument(javax.swing.JEditorPane) definition code for javax.swing.text.StyledEditorKit.StyledTextAction.getStyledDocument(javax.swing.JEditorPane) , getStyledEditorKit sample code for javax.swing.text.StyledEditorKit.StyledTextAction.getStyledEditorKit(javax.swing.JEditorPane) definition code for javax.swing.text.StyledEditorKit.StyledTextAction.getStyledEditorKit(javax.swing.JEditorPane) , setCharacterAttributes sample code for javax.swing.text.StyledEditorKit.StyledTextAction.setCharacterAttributes(javax.swing.JEditorPane, javax.swing.text.AttributeSet, boolean) definition code for javax.swing.text.StyledEditorKit.StyledTextAction.setCharacterAttributes(javax.swing.JEditorPane, javax.swing.text.AttributeSet, boolean) , setParagraphAttributes sample code for javax.swing.text.StyledEditorKit.StyledTextAction.setParagraphAttributes(javax.swing.JEditorPane, javax.swing.text.AttributeSet, boolean) definition code for javax.swing.text.StyledEditorKit.StyledTextAction.setParagraphAttributes(javax.swing.JEditorPane, javax.swing.text.AttributeSet, boolean)
 
Methods inherited from class javax.swing.text.TextAction sample code for javax.swing.text.TextAction definition code for javax.swing.text.TextAction
augmentList sample code for javax.swing.text.TextAction.augmentList(javax.swing.Action[], javax.swing.Action[]) definition code for javax.swing.text.TextAction.augmentList(javax.swing.Action[], javax.swing.Action[]) , getFocusedComponent sample code for javax.swing.text.TextAction.getFocusedComponent() definition code for javax.swing.text.TextAction.getFocusedComponent() , getTextComponent sample code for javax.swing.text.TextAction.getTextComponent(java.awt.event.ActionEvent) definition code for javax.swing.text.TextAction.getTextComponent(java.awt.event.ActionEvent)
 
Methods inherited from class javax.swing.AbstractAction sample code for javax.swing.AbstractAction definition code for javax.swing.AbstractAction
addPropertyChangeListener sample code for javax.swing.AbstractAction.addPropertyChangeListener(java.beans.PropertyChangeListener) definition code for javax.swing.AbstractAction.addPropertyChangeListener(java.beans.PropertyChangeListener) , clone sample code for javax.swing.AbstractAction.clone() definition code for javax.swing.AbstractAction.clone() , firePropertyChange sample code for javax.swing.AbstractAction.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for javax.swing.AbstractAction.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) , getKeys sample code for javax.swing.AbstractAction.getKeys() definition code for javax.swing.AbstractAction.getKeys() , getPropertyChangeListeners sample code for javax.swing.AbstractAction.getPropertyChangeListeners() definition code for javax.swing.AbstractAction.getPropertyChangeListeners() , getValue sample code for javax.swing.AbstractAction.getValue(java.lang.String) definition code for javax.swing.AbstractAction.getValue(java.lang.String) , isEnabled sample code for javax.swing.AbstractAction.isEnabled() definition code for javax.swing.AbstractAction.isEnabled() , putValue sample code for javax.swing.AbstractAction.putValue(java.lang.String, java.lang.Object) definition code for javax.swing.AbstractAction.putValue(java.lang.String, java.lang.Object) , removePropertyChangeListener sample code for javax.swing.AbstractAction.removePropertyChangeListener(java.beans.PropertyChangeListener) definition code for javax.swing.AbstractAction.removePropertyChangeListener(java.beans.PropertyChangeListener) , setEnabled sample code for javax.swing.AbstractAction.setEnabled(boolean) definition code for javax.swing.AbstractAction.setEnabled(boolean)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

StyledEditorKit.BoldAction sample code for javax.swing.text.StyledEditorKit.BoldAction() definition code for javax.swing.text.StyledEditorKit.BoldAction()

public StyledEditorKit.BoldAction()
Constructs a new BoldAction.

Method Detail

actionPerformed sample code for javax.swing.text.StyledEditorKit.BoldAction.actionPerformed(java.awt.event.ActionEvent) definition code for javax.swing.text.StyledEditorKit.BoldAction.actionPerformed(java.awt.event.ActionEvent)

public void actionPerformed(ActionEvent sample code for java.awt.event.ActionEvent definition code for java.awt.event.ActionEvent  e)
Toggles the bold attribute.

Parameters:
e - the action event