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, update
add, getDockable, remove, set, set, setControl
public ListFontTransmitter(FontManager manager, String[] sourceKeys, String[] destinationKeys)
sourceKeys
and
destinationKeys
must have the same length.protected FontModifier get(FontModifier value, String id, DockFont observer)
UITransmitter
UITransmitter
.get
in class UITransmitter<FontModifier,DockFont>
value
- the original valueid
- the key of the valueobserver
- the destination for the valueobserver
protected boolean isObservedMapKey(String key)
FontTransmitter
key
is one of the keys observed in
the FontMap
.isObservedMapKey
in class FontTransmitter
key
- 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)
FontTransmitter
value
into the form that should be used together
with dockable
.get
in class FontTransmitter
value
- some default value for id
id
- some of the keys specified for observationdockable
- the element for which the value would be usedvalue
or a transformed version of value