V
- the kind of value this UIValue
handlespublic class StationThemeItemValue<V> extends Object implements UIValue<V>
UIValue
that reads a item from
a ThemeManager
.Constructor and Description |
---|
StationThemeItemValue(String id,
Path kind,
TypedUIProperties.Type<V> type,
DockStation station)
Creates a new object.
|
Modifier and Type | Method and Description |
---|---|
V |
get()
Gets the resource that is currently used.
|
V |
getDelegate()
Gets the delegate of this wrapper.
|
DockStation |
getStation()
Gets the station that owns this
UIValue . |
void |
set(V value)
Called when the underlying resource of this
UIValue changes. |
void |
setController(DockController controller)
Allows this
UIValue to register itself on controller to
read the current value. |
void |
setDelegate(V delegate)
Sets the delegate of this wrapper.
|
public StationThemeItemValue(String id, Path kind, TypedUIProperties.Type<V> type, DockStation station)
id
- the identifier used for retrieving a resource of ThemeManager
kind
- what kind of UIValue
this istype
- what kind of value this UIValue
handlesstation
- the owner of this object, not null
public DockStation getStation()
UIValue
.public V getDelegate()
null
public void setController(DockController controller)
UIValue
to register itself on controller
to
read the current value.controller
- the controller to observer, can be null
public void setDelegate(V delegate)
delegate
- the delegate or null
public void set(V value)
UIValue
UIValue
changes.public V get()