public final class JComponentActionSetCustomForegroundSingleton extends AJComponentAction
Action
that sets a custom foreground color of the
corresponding JComponent
by showing a modal color chooser.
Only one instance per target component may exist.
JComponentActionSetCustomForeground
,
Serialized FormACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
m_component
Modifier and Type | Method | Description |
---|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
|
static JComponentActionSetCustomForegroundSingleton |
getInstance(javax.swing.JComponent component,
java.lang.String description) |
Returns the single instance for the given component, potentially creating
it.
|
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
public static JComponentActionSetCustomForegroundSingleton getInstance(javax.swing.JComponent component, java.lang.String description)
If an instance for the given component had been created the description String is ignored.
component
- the component to get the instance for (works as key).description
- the description to use (ignored if instance for component has
been created before).public void actionPerformed(java.awt.event.ActionEvent e)
ActionListener.actionPerformed(java.awt.event.ActionEvent)
public void propertyChange(java.beans.PropertyChangeEvent evt)
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
Copyright © 2001 - 2010 LGPL, All Rights Footloose.