SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Use this class to load the language files for a component at runtime.
Author: JANConstructor 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(language)
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(map, languagePack)
map
languagePack
Method Detail |
void addLabelFor(label)
IWLabel label
void
void destroyMultiLanguageSupport()
void
IWLanguagePack getLanguagePack()
IWLanguagePack
void loadLanguagePack(language)
onlanguagepackload
event is triggered.
String language
void
String toString()
String
Event Detail |
void triggerOnLanguagePackLoad(event)
Register an event listener with IWEventManager.addListener(yourMultiLanguageSupportObject, 'onlanguagepackload', yourHandlerMethod(event)); to receive the IWMultiLanguageSupportEvent.
IWMultiLanguageSupportEvent event
- the language support event
void