Class ColorTransmitter
java.lang.Object
bibliothek.gui.dock.common.intern.ui.UITransmitter<Color,DockColor>
bibliothek.gui.dock.common.intern.color.ColorTransmitter
- All Implemented Interfaces:
ColorBridge,UIBridge<Color,DockColor>
- Direct Known Subclasses:
BubbleDisplayerTransmitter,MinimizedButtonColorTransmitter,TabColorTransmitter,TitleColorTransmitter
public abstract class ColorTransmitter
extends UITransmitter<Color,DockColor>
implements ColorBridge
A
ColorTransmitter observes some ColorMaps
and transmits some Colors of these maps to a set of DockColors.- Author:
- Benjamin Sigg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds a listener todockableand callsUITransmitter.update(CDockable, String, Object)whenever some value needs an update.protected voiddisconnect(CDockable dockable) Removes a listener fromdockable.protected ColorgetFirstNonNull(ColorMap map, String... keys) Gets the first non-nullcolor ofmapthat matches a given key.Methods inherited from class bibliothek.gui.dock.common.intern.ui.UITransmitter
add, get, getDockable, remove, set, set, setControl, update
-
Constructor Details
-
ColorTransmitter
Creates a newColorTransmitter.- Parameters:
keys- the keys which should be monitored by this transmitter
-
-
Method Details
-
getFirstNonNull
Gets the first non-nullcolor ofmapthat matches a given key.- Parameters:
map- a map of colorskeys- some keys that will be read from index 0 upward.- Returns:
- the first
Colorthat is notnullornull
-
connect
Description copied from class:UITransmitterAdds a listener todockableand callsUITransmitter.update(CDockable, String, Object)whenever some value needs an update.- Specified by:
connectin classUITransmitter<Color,DockColor> - Parameters:
dockable- the element to observe
-
disconnect
Description copied from class:UITransmitterRemoves a listener fromdockable.- Specified by:
disconnectin classUITransmitter<Color,DockColor> - Parameters:
dockable- the element from which a listener should be removed
-