cookxml.cookswt.util
Class ColorDisposeListener

java.lang.Object
  extended bycookxml.cookswt.util.ColorDisposeListener
All Implemented Interfaces:
DisposeListener, EventListener, SWTEventListener

public class ColorDisposeListener
extends Object
implements DisposeListener

This DisposeListener attempts to dispose a color resource when the Widget using it is disposed.

Since:
CookSwt 1.0
See Also:
Color, SwtUtils.attachColorDisposeListener(org.eclipse.swt.widgets.Widget,org.eclipse.swt.graphics.Color)

Constructor Summary
ColorDisposeListener(Color color)
           
 
Method Summary
 void widgetDisposed(DisposeEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorDisposeListener

public ColorDisposeListener(Color color)
Method Detail

widgetDisposed

public void widgetDisposed(DisposeEvent e)
Specified by:
widgetDisposed in interface DisposeListener