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 ThemeManagerkind - what kind of UIValue this istype - what kind of value this UIValue handlesstation - the owner of this object, not nullpublic DockStation getStation()
UIValue.public V getDelegate()
nullpublic void setController(DockController controller)
UIValue to register itself on controller to
read the current value.controller - the controller to observer, can be nullpublic void setDelegate(V delegate)
delegate - the delegate or nullpublic void set(V value)
UIValueUIValue changes.public V get()
Copyright © 2017 Docking Frames. All rights reserved.