bibliothek.gui.dock.util.icon
Class AbstractIconScheme

java.lang.Object
  extended by bibliothek.gui.dock.util.AbstractUIScheme<Icon,DockIcon,DockIconBridge>
      extended by bibliothek.gui.dock.util.icon.AbstractIconScheme
All Implemented Interfaces:
UIScheme<Icon,DockIcon,DockIconBridge>
Direct Known Subclasses:
DefaultIconScheme

public abstract class AbstractIconScheme
extends AbstractUIScheme<Icon,DockIcon,DockIconBridge>

This abstract implementation of an UIScheme offers support for transfering values from the DockProperties to the IconManager.

Author:
Benjamin Sigg

Constructor Summary
AbstractIconScheme(DockController controller)
          Creates a new scheme
 
Method Summary
protected abstract  void changed(String id, Icon icon)
          Called if property accessed through a PropertyKey changed its value.
 void install(UIProperties<Icon,DockIcon,DockIconBridge> properties)
          Informs this scheme that it is now used by properties.
 void link(PropertyKey<Icon> key, String id)
          Creates a link between the value of key and the entry of identifier id.
 void uninstall(UIProperties<Icon,DockIcon,DockIconBridge> properties)
          Informs this scheme that it is no longer used by properties.
 void unlink(String id)
          Removes the link between the entry for id and a PropertyKey.
 
Methods inherited from class bibliothek.gui.dock.util.AbstractUIScheme
addListener, fire, removeListener
 
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.UIScheme
getBridge, getResource
 

Constructor Detail

AbstractIconScheme

public AbstractIconScheme(DockController controller)
Creates a new scheme

Parameters:
controller - the controller in whose realm this scheme will be used
Method Detail

link

public void link(PropertyKey<Icon> key,
                 String id)
Creates a link between the value of key and the entry of identifier id.

Parameters:
key - the property to observe
id - the identifier of the value to set

unlink

public void unlink(String id)
Removes the link between the entry for id and a PropertyKey.

Parameters:
id - the link to remove

changed

protected abstract void changed(String id,
                                Icon icon)
Called if property accessed through a PropertyKey changed its value.

Parameters:
id - the identifier of the value that changed
icon - the new value, can be null

install

public void install(UIProperties<Icon,DockIcon,DockIconBridge> properties)
Description copied from interface: UIScheme
Informs this scheme that it is now used by properties.

Parameters:
properties - the owner of this scheme

uninstall

public void uninstall(UIProperties<Icon,DockIcon,DockIconBridge> properties)
Description copied from interface: UIScheme
Informs this scheme that it is no longer used by properties.

Parameters:
properties - an old client of this scheme