|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.util.property.ConstantPropertyFactory<A>
A - the kind of value this factory handlespublic class ConstantPropertyFactory<A>
A PropertyFactory that always returns the same value.
| Constructor Summary | |
|---|---|
ConstantPropertyFactory(A value)
Creates a new factory. |
|
| Method Summary | |
|---|---|
A |
getDefault(PropertyKey<A> key)
Asks for the default value that should be used if no DockProperties
are available. |
A |
getDefault(PropertyKey<A> key,
DockProperties properties)
Gets the default value for key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstantPropertyFactory(A value)
value - the value this factory returns, can be null| Method Detail |
|---|
public A getDefault(PropertyKey<A> key,
DockProperties properties)
PropertyFactorykey. This method is called
only once for the combination of key and properties,
it can either always return the same object or create a new one every
time. The results gets stored as default value in properties.
getDefault in interface PropertyFactory<A>key - the key for which to get the defaultproperties - the map in which the default will be stored
null is validpublic A getDefault(PropertyKey<A> key)
PropertyFactoryDockProperties
are available.
getDefault in interface PropertyFactory<A>key - the key of the property
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||