V - the type of resources that are transmitted to the UIValues.U - the kind of UIValues this provider can managepublic interface UIBridge<V,U extends UIValue<V>>
UIBridge is a filter between the UIProperties and
several UIValues. Each change of an UIValue by the
UIProperties goes through an UIBridge. The bridge
can modify each request of the UIProperties and change
the resource that is transmitted to the UIValue. It is up to
the bridge how, why and when a resource is changed. Each bridge handles
only one kind (identified by a Path) of UIValue.| Modifier and Type | Method and Description |
|---|---|
void |
add(String id,
U uiValue)
Adds a new
UIValue that gets its resource from this bridge. |
void |
remove(String id,
U uiValue)
Removes a value from this bridge.
|
void |
set(String id,
V value,
U uiValue)
Called by the
UIProperties when one resource or UIValue
has been exchanged. |
void add(String id, U uiValue)
UIValue that gets its resource from this bridge.id - the id of the resource the new value needsuiValue - a value that can be modified by this bridevoid remove(String id, U uiValue)
id - the id of the resource the value neededuiValue - the value that is no longer in usevoid set(String id, V value, U uiValue)
UIProperties when one resource or UIValue
has been exchanged. Normally an UIBridge can just
call UIValue.set(Object) with the argument value.UIValue that was not added
to this UIBridge.id - the identifier of the resourcevalue - the new resource, can be nulluiValue - the value that is affected by the changeCopyright © 2017 Docking Frames. All rights reserved.