public abstract class ListFontTransmitter extends FontTransmitter
FontTransmitter that has a simple 1 to 1 relationship between
keys.| Constructor and Description |
|---|
ListFontTransmitter(FontManager manager,
String[] sourceKeys,
String[] destinationKeys)
Creates a new transmitter.
|
| Modifier and Type | Method and Description |
|---|---|
protected FontModifier |
get(FontModifier value,
String id,
CDockable dockable)
Transforms
value into the form that should be used together
with dockable. |
protected FontModifier |
get(FontModifier value,
String id,
DockFont observer)
Called when a value needs to be set whose key has been registered at
this
UITransmitter. |
protected boolean |
isObservedMapKey(String key)
Tells whether
key is one of the keys observed in
the FontMap. |
connect, disconnect, getFirstNonNull, updateadd, getDockable, remove, set, set, setControlpublic ListFontTransmitter(FontManager manager, String[] sourceKeys, String[] destinationKeys)
sourceKeys and
destinationKeys must have the same length.protected FontModifier get(FontModifier value, String id, DockFont observer)
UITransmitterUITransmitter.get in class UITransmitter<FontModifier,DockFont>value - the original valueid - the key of the valueobserver - the destination for the valueobserverprotected boolean isObservedMapKey(String key)
FontTransmitterkey is one of the keys observed in
the FontMap.isObservedMapKey in class FontTransmitterkey - the key which might be observedtrue if a change of key can
result in a change of fontsprotected FontModifier get(FontModifier value, String id, CDockable dockable)
FontTransmittervalue into the form that should be used together
with dockable.get in class FontTransmittervalue - some default value for idid - some of the keys specified for observationdockable - the element for which the value would be usedvalue or a transformed version of valueCopyright © 2018. All rights reserved.