|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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>>
An 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
.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 null
uiValue
- the value that is affected by the change
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |