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.

Field Summary
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
Languages()
           
 
Method Summary
protected static void CreateMaps()
          Creates the resources.
 Enumeration getKeys()
           
 long getLanguageId(String key)
          Retrieves a laguage id thanks to it's name.
 String getLanguageName(long key)
          Retrieves a laguage name thanks to it's id number.
 String[] getLanguagesList()
          Returns the languages names list
protected  Object handleGetObject(String key)
           
 
Methods inherited from class java.util.ResourceBundle
getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Languages

public Languages()
Method Detail

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