A
- the type of entrypublic class PropertyKey<A> extends Object
properties
.Modifier and Type | Field and Description |
---|---|
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 through 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 through 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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
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 setpublic static final PropertyKey<String> DOCK_STATION_TOOLTIP
DockStation
that has no tooltip setpublic 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.public final A getDefault(DockProperties properties)
DockProperties
.properties
- the properties for which the default value will be usedpublic boolean isNullValueReplacedByDefault()
null
value should be replaced by the
default value specified by this key.true
if null
means default