info.monitorenter.gui.chart.events
Class JComponentActionSetCustomBackgroundSingleton
java.lang.Object
javax.swing.AbstractAction
info.monitorenter.gui.chart.events.AJComponentAction
info.monitorenter.gui.chart.events.JComponentActionSetCustomBackgroundSingleton
- All Implemented Interfaces:
- ActionListener, PropertyChangeListener, Serializable, Cloneable, EventListener, Action
public final class JComponentActionSetCustomBackgroundSingleton
- extends AJComponentAction
Singleton 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.
- Version:
- $Revision: 1.3 $
- Author:
- Achim Westermann
- See Also:
JComponentActionSetCustomBackground
,
Serialized Form
getInstance
public static JComponentActionSetCustomBackgroundSingleton getInstance(JComponent component,
String description)
- Returns the single instance for the given component, potentially creating it.
If an instance for the given component had been created the description String is ignored.
- Parameters:
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).
- Returns:
- the single instance for the given component.
actionPerformed
public void actionPerformed(ActionEvent e)
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- See Also:
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
Copyright © 2001 - 2007 LGPL, All Rights Footloose.