st
Class LocaleList

java.lang.Object
  |
  +--javax.microedition.lcdui.Displayable
        |
        +--javax.microedition.lcdui.Screen
              |
              +--javax.microedition.lcdui.List
                    |
                    +--st.LocaleList
All Implemented Interfaces:
javax.microedition.lcdui.Choice

public class LocaleList
extends javax.microedition.lcdui.List

A list of locales for which localized messages are available.


Fields inherited from class javax.microedition.lcdui.List
SELECT_COMMAND
 
Fields inherited from interface javax.microedition.lcdui.Choice
EXCLUSIVE, IMPLICIT, MULTIPLE
 
Constructor Summary
LocaleList(java.lang.String locale)
           
 
Method Summary
 void addLocale(int id, java.lang.String locale)
          Add a locale to this list, and map it to the given ID.
 java.lang.String getLocale()
           
 int getLocaleID()
           
 void init(int size)
          Initialize this list to contain the given number of locales, on top of the default locale.
 
Methods inherited from class javax.microedition.lcdui.List
append, delete, getImage, getSelectedFlags, getSelectedIndex, getString, insert, isSelected, set, setSelectedFlags, setSelectedIndex, size
 
Methods inherited from class javax.microedition.lcdui.Screen
getTicker, getTitle, setTicker, setTitle
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, isShown, removeCommand, setCommandListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleList

public LocaleList(java.lang.String locale)
Method Detail

init

public void init(int size)
Initialize this list to contain the given number of locales, on top of the default locale.
Parameters:
the - size of this list.

addLocale

public void addLocale(int id,
                      java.lang.String locale)
Add a locale to this list, and map it to the given ID.
Parameters:
id - the ID of the locale.
locale - the name of the locale.

getLocaleID

public int getLocaleID()

getLocale

public java.lang.String getLocale()


Copyright © 2002 Sun Microsystems Inc. All rights reserved.