public class DefaultTextScheme extends AbstractUIScheme<String,TextValue,TextBridge>
UIScheme is used by the TextManager to load the default set of strings from
one or several ResourceBundles.| Constructor and Description |
|---|
DefaultTextScheme(ResourceBundle... bundles)
Creates a new scheme reading content from
bundles |
| Modifier and Type | Method and Description |
|---|---|
TextBridge |
getBridge(Path name,
UIProperties<String,TextValue,TextBridge> properties)
Creates the
UIBridge that handles resources of type name. |
String |
getResource(String name,
UIProperties<String,TextValue,TextBridge> properties)
Creates the resource with name
name. |
void |
install(UIProperties<String,TextValue,TextBridge> properties)
Informs this scheme that it is now used by
properties. |
void |
uninstall(UIProperties<String,TextValue,TextBridge> properties)
Informs this scheme that it is no longer used by
properties. |
addListener, fire, removeListenerpublic DefaultTextScheme(ResourceBundle... bundles)
bundlesbundles - the bundles to read, must not contain a null valuepublic TextBridge getBridge(Path name, UIProperties<String,TextValue,TextBridge> properties)
UISchemeUIBridge that handles resources of type name.name - the name of the bridgeproperties - the map that will use the resourcenull if this scheme does not know namepublic String getResource(String name, UIProperties<String,TextValue,TextBridge> properties)
UISchemename. This method may be called often
and should complete quickly.name - the name of some resourceproperties - the map that will use the resourcenull if this scheme does not know namepublic void install(UIProperties<String,TextValue,TextBridge> properties)
UISchemeproperties.properties - the owner of this schemepublic void uninstall(UIProperties<String,TextValue,TextBridge> properties)
UISchemeproperties.properties - an old client of this schemeCopyright © 2017 Docking Frames. All rights reserved.