bibliothek.gui.dock.util.property
Class DynamicPropertyFactory<A>

java.lang.Object
  extended by bibliothek.gui.dock.util.property.DynamicPropertyFactory<A>
Type Parameters:
A - the kind of value this factory handles
All Implemented Interfaces:
PropertyFactory<A>

public abstract class DynamicPropertyFactory<A>
extends Object
implements PropertyFactory<A>

A PropertyFactory for a property that needs to be associated with a single instance of a DockController. For example a property that has observers should be created by this factory.

Author:
Benjamin Sigg

Constructor Summary
DynamicPropertyFactory()
           
 
Method Summary
 A getDefault(PropertyKey<A> key)
          Asks for the default value that should be used if no DockProperties are available.
 
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.property.PropertyFactory
getDefault
 

Constructor Detail

DynamicPropertyFactory

public DynamicPropertyFactory()
Method Detail

getDefault

public A getDefault(PropertyKey<A> key)
Description copied from interface: PropertyFactory
Asks for the default value that should be used if no DockProperties are available.

Specified by:
getDefault in interface PropertyFactory<A>
Parameters:
key - the key of the property
Returns:
the default value, can be null