bibliothek.gui.dock.util.laf
Class AbstractLookAndFeelColors

java.lang.Object
  extended by bibliothek.gui.dock.util.laf.AbstractLookAndFeelColors
All Implemented Interfaces:
LookAndFeelColors
Direct Known Subclasses:
DefaultLookAndFeelColors, Nimbus6u10, Windows

public abstract class AbstractLookAndFeelColors
extends Object
implements LookAndFeelColors

An abstract implementation of LookAndFeelColors, handles all the tasks that are related to the management of the LookAndFeelColorsListener.

Author:
Benjamin Sigg

Field Summary
protected  List<LookAndFeelColorsListener> listeners
           
 
Fields inherited from interface bibliothek.gui.dock.util.laf.LookAndFeelColors
CONTROL_SHADOW, PANEL_BACKGROUND, PANEL_FOREGROUND, SELECTION, TITLE_BACKGROUND, TITLE_FOREGROUND, TITLE_SELECTION_BACKGROUND, TITLE_SELECTION_FOREGROUND
 
Constructor Summary
AbstractLookAndFeelColors()
           
 
Method Summary
 void addListener(LookAndFeelColorsListener listener)
          Adds a listener to this object, the listener must be informed when a color changes.
protected  void fireColorChanged(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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bibliothek.gui.dock.util.laf.LookAndFeelColors
bind, getColor, unbind
 

Field Detail

listeners

protected List<LookAndFeelColorsListener> listeners
Constructor Detail

AbstractLookAndFeelColors

public AbstractLookAndFeelColors()
Method Detail

addListener

public void addListener(LookAndFeelColorsListener listener)
Description copied from interface: LookAndFeelColors
Adds a listener to this object, the listener must be informed when a color changes.

Specified by:
addListener in interface LookAndFeelColors
Parameters:
listener - the listener to add

removeListener

public void removeListener(LookAndFeelColorsListener listener)
Description copied from interface: LookAndFeelColors
Removes a listener from this object.

Specified by:
removeListener in interface LookAndFeelColors
Parameters:
listener - the listener to remove

fireColorChanged

protected void fireColorChanged(String key)
Fires an event that the color key has changed.

Parameters:
key - the key of the changed color

fireColorsChanged

protected void fireColorsChanged()
Fires an event that some colors changed