glass.eclipse.theme
Class CGlassEclipseTabPainter.CTabPainter.CBorderListener

java.lang.Object
  extended by glass.eclipse.theme.CGlassEclipseTabPainter.CTabPainter.CBorderListener
All Implemented Interfaces:
bibliothek.gui.dock.util.DockPropertyListener<bibliothek.gui.dock.station.stack.tab.layouting.TabPlacement>
Enclosing class:
CGlassEclipseTabPainter.CTabPainter

protected class CGlassEclipseTabPainter.CTabPainter.CBorderListener
extends Object
implements bibliothek.gui.dock.util.DockPropertyListener<bibliothek.gui.dock.station.stack.tab.layouting.TabPlacement>

Listens to changes of the TabPlacement property and updates all used CEclipseBorder's. The borders are stored in a WeakHashMap so there will be no strong reference and unused borders are removed automatically by the garbage collector.

Author:
Thomas Hilbert

Field Summary
protected  WeakHashMap<CEclipseBorder,Void> wmap
           
 
Constructor Summary
protected CGlassEclipseTabPainter.CTabPainter.CBorderListener()
           
 
Method Summary
 void addBorder(CEclipseBorder border)
           
 void propertyChanged(bibliothek.gui.dock.util.DockProperties properties, bibliothek.gui.dock.util.PropertyKey<bibliothek.gui.dock.station.stack.tab.layouting.TabPlacement> property, bibliothek.gui.dock.station.stack.tab.layouting.TabPlacement oldValue, bibliothek.gui.dock.station.stack.tab.layouting.TabPlacement newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wmap

protected WeakHashMap<CEclipseBorder,Void> wmap
Constructor Detail

CGlassEclipseTabPainter.CTabPainter.CBorderListener

protected CGlassEclipseTabPainter.CTabPainter.CBorderListener()
Method Detail

addBorder

public void addBorder(CEclipseBorder border)

propertyChanged

public void propertyChanged(bibliothek.gui.dock.util.DockProperties properties,
                            bibliothek.gui.dock.util.PropertyKey<bibliothek.gui.dock.station.stack.tab.layouting.TabPlacement> property,
                            bibliothek.gui.dock.station.stack.tab.layouting.TabPlacement oldValue,
                            bibliothek.gui.dock.station.stack.tab.layouting.TabPlacement newValue)
Specified by:
propertyChanged in interface bibliothek.gui.dock.util.DockPropertyListener<bibliothek.gui.dock.station.stack.tab.layouting.TabPlacement>