|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.common.intern.ui.UITransmitter<Color,DockColor>
bibliothek.gui.dock.common.intern.color.ColorTransmitter
public abstract class ColorTransmitter
A ColorTransmitter observes some ColorMaps
and transmits some Colors of these maps to a set of DockColors.
| Constructor Summary | |
|---|---|
ColorTransmitter(String... keys)
Creates a new ColorTransmitter. |
|
| Method Summary | |
|---|---|
protected void |
connect(CDockable dockable)
Adds a listener to dockable and calls
UITransmitter.update(CDockable, String, Object) whenever some value
needs an update. |
protected void |
disconnect(CDockable dockable)
Removes a listener from dockable. |
protected Color |
getFirstNonNull(ColorMap map,
String... keys)
Gets the first non- null color of map that
matches a given key. |
| Methods inherited from class bibliothek.gui.dock.common.intern.ui.UITransmitter |
|---|
add, get, getDockable, remove, set, set, setControl, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface bibliothek.gui.dock.util.UIBridge |
|---|
add, remove, set |
| Constructor Detail |
|---|
public ColorTransmitter(String... keys)
ColorTransmitter.
keys - the keys which should be monitored by this transmitter| Method Detail |
|---|
protected Color getFirstNonNull(ColorMap map,
String... keys)
null color of map that
matches a given key.
map - a map of colorskeys - some keys that will be read from index 0 upward.
Color that is not null or nullprotected void connect(CDockable dockable)
UITransmitterdockable and calls
UITransmitter.update(CDockable, String, Object) whenever some value
needs an update.
connect in class UITransmitter<Color,DockColor>dockable - the element to observeprotected void disconnect(CDockable dockable)
UITransmitterdockable.
disconnect in class UITransmitter<Color,DockColor>dockable - the element from which a listener should be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||