|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.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 Vpublic class MultiUIBridge<V,U extends UIValue<V>>
A MultiUIBridge is a collection of UIBridges. 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(String id,
U uiValue)
Adds a new UIValue that gets its resource from this bridge. |
UIBridge<V,U> |
getBridge(String id)
Searches the bridge that handles resources with the key id. |
void |
put(String id,
UIBridge<V,U> bridge)
Specifies a bridge that handles all calls regarding id. |
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. |
| 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 necessary| Method Detail |
|---|
public void put(String id,
UIBridge<V,U> bridge)
id.
id - the key of the resource bridge should handlebridge - the new bridge or nullpublic UIBridge<V,U> getBridge(String id)
id.
id - the key of the resources
null
public void add(String id,
U uiValue)
UIBridgeUIValue 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 bride
public void remove(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 use
public void set(String id,
V value,
U uiValue)
UIBridgeUIProperties when one resource or UIValue
has been exchanged. Normally an UIBridge can just
call UIValue.set(Object) with the argument value.
set in interface UIBridge<V,U extends UIValue<V>>id - the identifier of the resourcevalue - the new resource, can be nulluiValue - the value that is affected by the change
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||