ResourceManager

Namespace: PP

Inheritance hierarchy

Object

ResourceManager

Description

The ResourceManager class is the resources manager.

Comments

This class contains the list of controls to be localized and refreshes values of control fields when the system current language changes.

Syntax

PP.initClass(PP.ResourceManager,  PP.Object, "PP.ResourceManager");

Constructor

  Constructor name Brief description
ResourceManager The ResourceManager constructor creates an instance of the ResourceManager class.

Properties

  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.

Methods

  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.

Events

   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.

Properties inherited from the Object class

  Property name Brief description

Id

The Id property determines a repository object identifier.

Methods inherited from the Object class

  Method name Brief description
clone The clone method creates an object copy.
dispose The dispose method deletes the component.
getHashCode The getHashCode method returns hash code of repository object.
getSettings The getSettings method returns repository object settings.
getTypeName The getTypeName method returns the name of the object type without the namespace, to which it belongs.
isEqual The isEqual method determines whether the specified object is equal to the current repository object.
isLive The isLive method determines validity of repository object.
removeAllEvents The removeAllEvents method removes all object event handlers by the specified context.
setSettings The setSettings method determines repository object settings.
defineProps The defineProps method creates get and set methods from name array for the specified class.
keys The keys method returns array of methods and properties names for the specified object.

See also:

PP