|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.util.UIProperties<V,U>
public class UIProperties<V,U extends UIValue<V>>
Constructor Summary | |
---|---|
UIProperties()
|
Method Summary | ||
---|---|---|
|
add(String id,
Class<? super P> kind,
P value)
Installs a new UIValue . |
|
void |
clear(Priority priority)
Removes all values that stored under the given priority. |
|
V |
get(String id)
Gets a resource. |
|
protected UIBridge<V,? extends U> |
getBridgeFor(Class<?> clazz)
Searches a bridge that can be used for clazz . |
|
void |
lockUpdate()
Tells this manager to stall all updates. |
|
|
publish(Priority priority,
Class<? extends P> kind,
UIBridge<V,P> bridge)
Adds a new bridge between this UIProperties and a set of
UIValue s that have a certain type. |
|
void |
put(Priority priority,
String id,
V resource)
Sets a new resource and informs all UIValue that are observing
id about the change. |
|
void |
remove(U value)
Uninstalls an observer of a resource |
|
void |
unlockUpdate()
Tells this manager no longer to stall updates. |
|
void |
unpublish(Priority priority,
Class<? extends U> kind)
Removes the bridge that handles the UIValue s of kind kind . |
|
void |
unpublish(Priority priority,
UIBridge<V,? extends U> bridge)
Searches for all occurrences of bridge and removes them. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UIProperties()
Method Detail |
---|
public void lockUpdate()
UIValue
will
be informed when a color or provider changes.
public void unlockUpdate()
UIValue
s.
public <P extends U> void publish(Priority priority, Class<? extends P> kind, UIBridge<V,P> bridge)
UIProperties
and a set of
UIValue
s that have a certain type.
P
- the kind of UIValue
s the bridge can handle.priority
- the importance of the new providerkind
- the kind of values that the new bridge should handlebridge
- the new bridgepublic void unpublish(Priority priority, Class<? extends U> kind)
UIValue
s of kind kind
.
priority
- the importance of the bridgekind
- some kind of UIValue
public void unpublish(Priority priority, UIBridge<V,? extends U> bridge)
bridge
and removes them.
All UIValue
s that used bridge
are redistributed.
priority
- the importance of the bridgebridge
- the bridge to removepublic <P extends U> void add(String id, Class<? super P> kind, P value)
UIValue
. The value will be informed about
any change in the resource id
.
P
- the type of the valueid
- the id of the resource that value
will monitorkind
- the type of the observervalue
- the new valuepublic void remove(U value)
value
- the observer to removeprotected UIBridge<V,? extends U> getBridgeFor(Class<?> clazz)
clazz
.
clazz
- the type whose bridge is searched
null
public void put(Priority priority, String id, V resource)
UIValue
that are observing
id
about the change.
priority
- the importance of this valueid
- the id of the colorresource
- the new resourcepublic V get(String id)
id
- the id of the resource
null
put(Priority, String, Object)
public void clear(Priority priority)
priority
- the priority whose elements should be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |