API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text. StyledEditorKit.ForegroundAction View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      AbstractAction
          TextAction
              StyledEditorKit.StyledTextAction
                  StyledEditorKit.ForegroundAction
Implements
Subclasses
Description
publicstatic class StyledEditorKit.ForegroundAction
  An action to set foreground color.
See also:   
Constructors
public StyledEditorKit.ForegroundAction (String nm, Color fg)
  Creates a new ForegroundAction.
Methods
Hide/Show inherited methods
public void actionPerformed (ActionEvent e)
  Sets the foreground color.
publicsynchronized void addPropertyChangeListener (PropertyChangeListener listener) [Inherited From AbstractAction]
  Adds a PropertyChangeListener to the listener list.
publicfinalstatic Action augmentList (Action list1, Action list2) [Inherited From TextAction]
  Takes one list of commands and augments it with another list of commands.
protected Object clone () throws CloneNotSupportedException [Inherited From AbstractAction]
  Clones the abstract action.
protected void firePropertyChange (String propertyName, Object oldValue, Object newValue) [Inherited From AbstractAction]
  Supports reporting bound property changes.
protectedfinal JEditorPane getEditor (ActionEvent e) [Inherited From StyledEditorKit.StyledTextAction]
  Gets the target editor for an action.
protectedfinal JTextComponent getFocusedComponent () [Inherited From TextAction]
  Fetches the text component that currently has focus.
public Object getKeys () [Inherited From AbstractAction]
  Returns an array of Objects which are keys for which values have been set for this AbstractAction, or null if no keys have values set.
publicsynchronized PropertyChangeListener getPropertyChangeListeners () [Inherited From AbstractAction]
  Returns an array of all the PropertyChangeListeners added to this AbstractAction with addPropertyChangeListener().
protectedfinal StyledDocument getStyledDocument (JEditorPane e) [Inherited From StyledEditorKit.StyledTextAction]
  Gets the document associated with an editor pane.
protectedfinal StyledEditorKit getStyledEditorKit (JEditorPane e) [Inherited From StyledEditorKit.StyledTextAction]
  Gets the editor kit associated with an editor pane.
protectedfinal JTextComponent getTextComponent (ActionEvent e) [Inherited From TextAction]
  Determines the component to use for the action.
public Object getValue (String key) [Inherited From AbstractAction]
  Gets the Object associated with the specified key.
public boolean isEnabled () [Inherited From AbstractAction]
  Returns true if the action is enabled.
public void putValue (String key, Object newValue) [Inherited From AbstractAction]
  Sets the Value associated with the specified key.
publicsynchronized void removePropertyChangeListener (PropertyChangeListener listener) [Inherited From AbstractAction]
  Removes a PropertyChangeListener from the listener list.
protectedfinal void setCharacterAttributes (JEditorPane editor, AttributeSet attr, boolean replace) [Inherited From StyledEditorKit.StyledTextAction]
  Applies the given attributes to character content.
public void setEnabled (boolean newValue) [Inherited From AbstractAction]
  Enables or disables the action.
protectedfinal void setParagraphAttributes (JEditorPane editor, AttributeSet attr, boolean replace) [Inherited From StyledEditorKit.StyledTextAction]
  Applies the given attributes to paragraphs.
Fields
Hide/Show inherited fields
protected SwingPropertyChangeSupport changeSupport [Inherited From AbstractAction]
If any PropertyChangeListeners have been registered, the changeSupport field describes them.
protected boolean enabled [Inherited From AbstractAction]
Specifies whether action is enabled; the default is true.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar