public interface LanguageControl extends Control
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentLanguage()
Returns the language code of the currently selected language.
|
String[] |
listAvailableLanguages()
Provides the application a list of available languages.
|
String |
selectDefaultLanguage()
Changes the language to the default language determined by the implementation.
|
void |
selectLanguage(String lang)
Changes the language to the language given in the parameter.
|
getControlComponentString[] listAvailableLanguages()
void selectLanguage(String lang) throws LanguageNotAvailableException, NotAuthorizedException
lang - the desired language code according to the ISO 639 standard.LanguageNotAvailableException - if the language given in the parameter is not available,NotAuthorizedException - if access to the required language is not
permittedString getCurrentLanguage()
String selectDefaultLanguage() throws NotAuthorizedException
NotAuthorizedException - If access to the default language is not
permittedCopyright © 2012 code4tv.com. All Rights Reserved.