|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.util.MultiUIBridge<V,U>
V
- the kind of resources that get handled by this bridgeU
- the kind of values that get the resources of kind V
public class MultiUIBridge<V,U extends UIValue<V>>
A MultiUIBridge
is a collection of UIBridge
s. Each bridge
in the collection is responsible to handle only one resource.
Constructor Summary | |
---|---|
MultiUIBridge(UIProperties<V,U,?> manager)
Creates a new MultiUIBridge . |
Method Summary | |
---|---|
void |
add(java.lang.String id,
U uiValue)
Adds a new UIValue that gets its resource from this bridge. |
UIBridge<V,U> |
getBridge(java.lang.String id)
Searches the bridge that handles resources with the key id . |
void |
put(java.lang.String id,
UIBridge<V,U> bridge)
Specifies a bridge that handles all calls regarding id . |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiUIBridge(UIProperties<V,U,?> manager)
MultiUIBridge
.
manager
- the manager from whom this provider will get default
colors when necessaryMethod Detail |
---|
public void put(java.lang.String id, UIBridge<V,U> bridge)
id
.
id
- the key of the resource bridge
should handlebridge
- the new bridge or null
public UIBridge<V,U> getBridge(java.lang.String id)
id
.
id
- the key of the resources
null
public void add(java.lang.String id, U uiValue)
UIBridge
UIValue
that gets its resource from this bridge.
add
in interface UIBridge<V,U extends UIValue<V>>
id
- the id of the resource the new value needsuiValue
- a value that can be modified by this bridepublic void remove(java.lang.String id, U uiValue)
UIBridge
remove
in interface UIBridge<V,U extends UIValue<V>>
id
- the id of the resource the value neededuiValue
- the value that is no longer in usepublic void set(java.lang.String id, V value, U uiValue)
UIBridge
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
.
set
in interface UIBridge<V,U extends UIValue<V>>
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 |