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 Formm_component
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
static JComponentActionSetCustomForegroundSingleton |
getInstance(JComponent component,
String description)
Returns the single instance for the given component, potentially creating
it.
|
void |
propertyChange(PropertyChangeEvent evt) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public static JComponentActionSetCustomForegroundSingleton getInstance(JComponent component, 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(ActionEvent e)
public void propertyChange(PropertyChangeEvent evt)
Copyright © 2001 - 2010 LGPL, All Rights Footloose.