Class ListFontTransmitter
java.lang.Object
bibliothek.gui.dock.common.intern.ui.UITransmitter<FontModifier,DockFont>
bibliothek.gui.dock.common.intern.font.FontTransmitter
bibliothek.gui.dock.common.intern.font.ListFontTransmitter
- All Implemented Interfaces:
FontBridge,UIBridge<FontModifier,DockFont>
- Direct Known Subclasses:
ButtonFontTransmitter,TabFontTransmitter,TabTitleFontTransmitter,TitleFontTransmitter
A
FontTransmitter that has a simple 1 to 1 relationship between
keys.- Author:
- Benjamin Sigg
-
Constructor Summary
ConstructorsConstructorDescriptionListFontTransmitter(FontManager manager, String[] sourceKeys, String[] destinationKeys) Creates a new transmitter. -
Method Summary
Modifier and TypeMethodDescriptionprotected FontModifierget(FontModifier value, String id, CDockable dockable) Transformsvalueinto the form that should be used together withdockable.protected FontModifierget(FontModifier value, String id, DockFont observer) Called when a value needs to be set whose key has been registered at thisUITransmitter.protected booleanisObservedMapKey(String key) Tells whetherkeyis one of the keys observed in theFontMap.Methods inherited from class bibliothek.gui.dock.common.intern.font.FontTransmitter
connect, disconnect, getFirstNonNull, updateMethods inherited from class bibliothek.gui.dock.common.intern.ui.UITransmitter
add, getDockable, remove, set, set, setControl
-
Constructor Details
-
Method Details
-
get
Description copied from class:UITransmitterCalled when a value needs to be set whose key has been registered at thisUITransmitter.- Specified by:
getin classUITransmitter<FontModifier,DockFont> - Parameters:
value- the original valueid- the key of the valueobserver- the destination for the value- Returns:
- the value that should be set to
observer
-
isObservedMapKey
Description copied from class:FontTransmitterTells whetherkeyis one of the keys observed in theFontMap.- Specified by:
isObservedMapKeyin classFontTransmitter- Parameters:
key- the key which might be observed- Returns:
trueif a change ofkeycan result in a change of fonts
-
get
Description copied from class:FontTransmitterTransformsvalueinto the form that should be used together withdockable.- Specified by:
getin classFontTransmitter- Parameters:
value- some default value foridid- some of the keys specified for observationdockable- the element for which the value would be used- Returns:
- either
valueor a transformed version ofvalue
-