Namespace: PP
ResourceManager
The ResourceManager class is the resources manager.
This class contains the list of controls to be localized and refreshes values of control fields when the system current language changes.
PP.initClass(PP.ResourceManager, PP.Object, "PP.ResourceManager");
Constructor name | Brief description | |
ResourceManager | The ResourceManager constructor creates an instance of the ResourceManager class. |
Property name | Brief description | |
RootResourcesFolder | The RootResourcesFolder property determines the root folder that contains resource files. | |
String | The String property determines a string for the specified language, resource key and field name. |
Method name | Brief description | |
addToResourceList | The addToResourceList method adds the specified array to the existing list of resource files' names. | |
attachResourceFiles | The attachResourceFiles method initializes resource file loading. | |
detachResourceFiles | The detachResourceFiles method detaches all resource files for the specified language. | |
isControlRegistered | The isControlRegistered method checks if the specified control is registered in the resources manager. | |
isResourceFileAttached | The isResourceFileAttached method checks if resource file for the specified locale is attached. | |
isResourceFilesAttached | The isResourceFilesAttached method checks if resource files for the specified locale are attached. | |
load | The load method loads resources files as a string with file names separated with commas. | |
refreshControls | The refreshControls method refreshes the controls registered in the resources manager. | |
registerControl | The registerControl method registers a control in the resources manager. | |
setResourceHandler | The setResourceHandler method sets URL of web service that processes queries addressed to the resources manager. | |
setResourceList | The setResourceList method initializes the list of available resource files. | |
setStrings | The setStrings method loads array of strings for specified languages, resource keys and field names. | |
unRegisterControl | The unRegisterControl method removes control from the list of controls registered in the resource manager. |
Event name | Brief description | |
ResourceFileLoaded | The ResourceFileLoaded event occurs after loading resource file. | |
ResourcesLoaded | The ResourcesLoaded event occurs after resources are loaded from file. | |
StartupSetLoaded | The StartupSetLoaded event occurs after loading all resource files for the current language. |
Property name | Brief description | |
Data | The Data property associates a random object with this component. | |
Id | The Id property sets component identifier. | |
Settings | The Settings property sets the component parameters. |
Method name | Brief description | |
clone | The clone method creates a copy of object. It is not implemented in PP.Ui.Control. | |
dispose | The dispose method deletes the component. | |
getTypeName | The getTypeName method returns the name of the object type without the namespace, to which it belongs. |
See also: