Class IWMultiLanguageSupport

Use this class to load the language files for a component at runtime.


Constructor Summary
IWMultiLanguageSupport(map, languagePack)
            The multi language support interface loads the requested language file at runtime.
 
Method Summary
 void addLabelFor(label)
           Adds a new label which will be updated after the new language pack has been loaded.
 void destroyMultiLanguageSupport()
           Destroys all registered listeners and DOM references. instance.
 IWLanguagePack getLanguagePack()
           Returns the language pack.
 void loadLanguagePack(lang)
           Loads the corresponding language file for the specified ISO language code. loaded the onlanguagepackload event is triggered.
 String toString()
           Returns a string representation of the class.
 
Event Summary
 void triggerOnLanguagePackLoad(event)
           The onlanguagepackload event is fired after the requested language pack has been loaded.

Register an event listener with IWEventManager.addListener(yourMultiLanguageSupportObject, 'onlanguagepackload', yourHandlerMethod(event)); to receive the IWMultiLanguageSupportEvent.

 
Constructor Detail

IWMultiLanguageSupport

IWMultiLanguageSupport(map, languagePack)

Method Detail

addLabelFor

void addLabelFor(label)

destroyMultiLanguageSupport

void destroyMultiLanguageSupport()

getLanguagePack

IWLanguagePack getLanguagePack()

loadLanguagePack

void loadLanguagePack(lang)

toString

String toString()

Event Detail

triggerOnLanguagePackLoad

void triggerOnLanguagePackLoad(event)

Source-Code Copyright 2007-2016 infoware GmbH - Documentation generated on Tue Nov 29 2022 14:20:14 GMT+0100 (MEZ)