com.jgoodies.forms.util
Class Utilities.LookAndFeelChangeHandler

java.lang.Object
  extended by com.jgoodies.forms.util.Utilities.LookAndFeelChangeHandler
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener
Enclosing class:
Utilities

private static final class Utilities.LookAndFeelChangeHandler
extends java.lang.Object
implements java.beans.PropertyChangeListener

Listens to changes of the Look and Feel and invalidates the cache.


Constructor Summary
private Utilities.LookAndFeelChangeHandler()
           
 
Method Summary
 void propertyChange(java.beans.PropertyChangeEvent evt)
          Invalidates the cached laf states, if the UIManager has fired any property change event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utilities.LookAndFeelChangeHandler

private Utilities.LookAndFeelChangeHandler()
Method Detail

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Invalidates the cached laf states, if the UIManager has fired any property change event. Since we need to handle look&feel changes only, we check the event's property name to be "lookAndFeel" or null. The check for null is necessary to handle the special event where property name, old and new value are all null to indicate that multiple properties have changed.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
evt - describes the property change