V
- the type of resources that are transmitted to the UIValue
s.U
- the kind of UIValue
s this provider can managepublic interface UIBridge<V,U extends UIValue<V>>
UIBridge
is a filter between the UIProperties
and
several UIValue
s. 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(java.lang.String id,
U uiValue)
Adds a new
UIValue that gets its resource from this bridge. |
void |
remove(java.lang.String id,
U uiValue)
Removes a value from this bridge.
|
void |
set(java.lang.String id,
V value,
U uiValue)
Called by the
UIProperties when one resource or UIValue
has been exchanged. |
void add(java.lang.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(java.lang.String id, U uiValue)
id
- the id of the resource the value neededuiValue
- the value that is no longer in usevoid set(java.lang.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 null
uiValue
- the value that is affected by the change