|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.sfac.lang.MultiLingualDirectText
public class MultiLingualDirectText
Implementation of the MultiLingualText interface holding all possible translations in a Map.
| Constructor Summary | |
|---|---|
MultiLingualDirectText(String defaultText)
|
|
| Method Summary | |
|---|---|
void |
add(String localeId,
String text)
|
Iterator<String> |
getAvailableLocaleIds()
|
String |
getText()
Get the value of the text for the default locale. |
String |
getText(Locale loc)
Get the value of the text for the specified locale. |
String |
getText(String localeId)
Get the value of the text for the specified locale. |
void |
remove(String localeId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiLingualDirectText(String defaultText)
| Method Detail |
|---|
public void add(String localeId,
String text)
public void remove(String localeId)
public String getText()
MultiLingualText
getText in interface MultiLingualTextpublic String getText(Locale loc)
MultiLingualTextResourceBundle mechanism.
getText in interface MultiLingualTextpublic String getText(String localeId)
MultiLingualTextResourceBundle mechanism.
getText in interface MultiLingualTextlocaleId - the ID of the locale (language_country_variant)
public Iterator<String> getAvailableLocaleIds()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||