public abstract class AbstractLookAndFeelColors extends java.lang.Object implements LookAndFeelColors
LookAndFeelColors
, handles all the
tasks that are related to the management of the LookAndFeelColorsListener
.Modifier and Type | Field and Description |
---|---|
protected java.util.List<LookAndFeelColorsListener> |
listeners |
CONTROL_SHADOW, PANEL_BACKGROUND, PANEL_FOREGROUND, SELECTION, TITLE_BACKGROUND, TITLE_FOREGROUND, TITLE_SELECTION_BACKGROUND, TITLE_SELECTION_FOREGROUND, WINDOW_BORDER
Constructor and Description |
---|
AbstractLookAndFeelColors() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(LookAndFeelColorsListener listener)
Adds a listener to this object, the listener must be informed when
a color changes.
|
protected void |
fireColorChanged(java.lang.String key)
Fires an event that the color
key has changed. |
protected void |
fireColorsChanged()
Fires an event that some colors changed
|
void |
removeListener(LookAndFeelColorsListener listener)
Removes a listener from this object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bind, getColor, unbind
protected java.util.List<LookAndFeelColorsListener> listeners
public void addListener(LookAndFeelColorsListener listener)
LookAndFeelColors
addListener
in interface LookAndFeelColors
listener
- the listener to addpublic void removeListener(LookAndFeelColorsListener listener)
LookAndFeelColors
removeListener
in interface LookAndFeelColors
listener
- the listener to removeprotected void fireColorChanged(java.lang.String key)
key
has changed.key
- the key of the changed colorprotected void fireColorsChanged()