NWNLanguages
Class Languages
java.lang.Object
|
+--java.util.ResourceBundle
|
+--NWNLanguages.Languages
- Direct Known Subclasses:
- Languages_fr
- public class Languages
- extends ResourceBundle
18 juil. 2003
- Author:
- Alexandre Brunel
Handles the languages.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Languages
public Languages()
CreateMaps
protected static void CreateMaps()
- Creates the resources.
getKeys
public Enumeration getKeys()
- Specified by:
getKeys
in class ResourceBundle
getLanguageId
public long getLanguageId(String key)
- Retrieves a laguage id thanks to it's name.
- Parameters:
key
- name of the language to retrieve.
- Returns:
- The id of the language whose name is key.
getLanguageName
public String getLanguageName(long key)
- Retrieves a laguage name thanks to it's id number.
- Parameters:
key
- id of the language to retrieve.
- Returns:
- The name of the language whose id is key.
getLanguagesList
public String[] getLanguagesList()
- Returns the languages names list
- Returns:
- A list of string.
handleGetObject
protected Object handleGetObject(String key)
- Specified by:
handleGetObject
in class ResourceBundle