public class DefaultTextScheme extends AbstractUIScheme<java.lang.String,TextValue,TextBridge>
UIScheme
is used by the TextManager
to load the default set of strings from
one or several ResourceBundle
s.Constructor and Description |
---|
DefaultTextScheme(java.util.ResourceBundle... bundles)
Creates a new scheme reading content from
bundles |
Modifier and Type | Method and Description |
---|---|
TextBridge |
getBridge(Path name,
UIProperties<java.lang.String,TextValue,TextBridge> properties)
Creates the
UIBridge that handles resources of type name . |
java.lang.String |
getResource(java.lang.String name,
UIProperties<java.lang.String,TextValue,TextBridge> properties)
Creates the resource with name
name . |
void |
install(UIProperties<java.lang.String,TextValue,TextBridge> properties)
Informs this scheme that it is now used by
properties . |
void |
uninstall(UIProperties<java.lang.String,TextValue,TextBridge> properties)
Informs this scheme that it is no longer used by
properties . |
addListener, fire, removeListener
public DefaultTextScheme(java.util.ResourceBundle... bundles)
bundles
bundles
- the bundles to read, must not contain a null
valuepublic TextBridge getBridge(Path name, UIProperties<java.lang.String,TextValue,TextBridge> properties)
UIScheme
UIBridge
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 name
public java.lang.String getResource(java.lang.String name, UIProperties<java.lang.String,TextValue,TextBridge> properties)
UIScheme
name
. 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 name
public void install(UIProperties<java.lang.String,TextValue,TextBridge> properties)
UIScheme
properties
.properties
- the owner of this schemepublic void uninstall(UIProperties<java.lang.String,TextValue,TextBridge> properties)
UIScheme
properties
.properties
- an old client of this scheme