|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.util.PropertyKey<A>
A
- the type of entrypublic class PropertyKey<A>
The key for an entry in a map of properties
.
Field Summary | |
---|---|
static PropertyKey<Icon> |
DOCK_STATION_ICON
The Icon used for a DockStation if it has no icon.This key should only be used for writing the icon, reading the icon should be done throught the IconManager
using the key "dockStation.default". |
static PropertyKey<String> |
DOCK_STATION_TITLE
The title of a DockStation if it has no title. |
static PropertyKey<String> |
DOCK_STATION_TOOLTIP
The tooltip used for a DockStation that has no tooltip set |
static PropertyKey<Icon> |
DOCKABLE_ICON
The Icon used for a Dockable if it has no icon.This key should only be used for writing the icon, reading the icon should be done throught the IconManager
using the key "dockable.default". |
static PropertyKey<String> |
DOCKABLE_TITLE
The title of a Dockable if it has no title. |
static PropertyKey<String> |
DOCKABLE_TOOLTIP
The tooltip used for a Dockable that has no tooltip set |
Constructor Summary | |
---|---|
PropertyKey(String id)
Creates a new key. |
|
PropertyKey(String id,
PropertyFactory<A> value)
Deprecated. replaced by PropertyKey(String, PropertyFactory, boolean) |
|
PropertyKey(String id,
PropertyFactory<A> value,
boolean nullValueReplacedByDefault)
Creates a new key. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
A |
getDefault(DockProperties properties)
Gets a default-value that should be used when no value is set in the DockProperties .Note: this method should not be called by clients. |
int |
hashCode()
|
boolean |
isNullValueReplacedByDefault()
If set, then the null value should be replaced by the
default value specified by this key. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PropertyKey<Icon> DOCKABLE_ICON
Dockable
if it has no icon.IconManager
using the key "dockable.default".
public static final PropertyKey<Icon> DOCK_STATION_ICON
DockStation
if it has no icon.IconManager
using the key "dockStation.default".
public static final PropertyKey<String> DOCKABLE_TITLE
Dockable
if it has no title.
public static final PropertyKey<String> DOCK_STATION_TITLE
DockStation
if it has no title.
public static final PropertyKey<String> DOCKABLE_TOOLTIP
Dockable
that has no tooltip set
public static final PropertyKey<String> DOCK_STATION_TOOLTIP
DockStation
that has no tooltip set
Constructor Detail |
---|
public PropertyKey(String id)
id
- a unique identifier, should contain the name of the
type of property, represented by this key.@Deprecated public PropertyKey(String id, PropertyFactory<A> value)
PropertyKey(String, PropertyFactory, boolean)
id
- a unique identifier, should contain the name of the
type of property, represented by this key.value
- the value that will be used when no value is set
in the propertiespublic PropertyKey(String id, PropertyFactory<A> value, boolean nullValueReplacedByDefault)
id
- a unique identifier, should contain the name of the
type of property, represented by this key.value
- the value that will be used when no value is set
in the propertiesnullValueReplacedByDefault
- if set, then the null
value
in DockProperties
gets replaced by the default value of this key even if
the null
value was set explicitely.Method Detail |
---|
public final A getDefault(DockProperties properties)
DockProperties
.
properties
- the properties for which the default value will be used
public boolean isNullValueReplacedByDefault()
null
value should be replaced by the
default value specified by this key.
true
if null
means defaultpublic final int hashCode()
hashCode
in class Object
public final boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |