public final class JComponentActionSetCustomBackgroundSingleton extends AJComponentAction
Action
that sets a custom background color of the
corresponding JComponent
by showing a modal color chooser.
Only one instance per target component may exist.
JComponentActionSetCustomBackground
,
Serialized Formm_component
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
static JComponentActionSetCustomBackgroundSingleton |
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 JComponentActionSetCustomBackgroundSingleton 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.