|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.xui.helper.XDefaultTranslator
public class XDefaultTranslator
The default implementation of the XTranslator interface, providing simplified lookup of strings in the resource bundle and some independance of the individual resource bundle
Copyright (c) Xoetrope Ltd., 2002-2005
$Revision: 1.1 $
License: see License.txt
| Field Summary | |
|---|---|
protected XProject |
currentProject
|
protected java.util.ResourceBundle |
languageResourceBundle
|
| Constructor Summary | |
|---|---|
XDefaultTranslator(XProject project)
Creates a new instance of XDefaultTranslator |
|
| Method Summary | |
|---|---|
void |
setResourceBundle(java.util.ResourceBundle bundle)
Set the resource bundle for this translator. |
java.lang.String |
translate(java.lang.String key)
Look up the translation of a key using the current language resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ResourceBundle languageResourceBundle
protected XProject currentProject
| Constructor Detail |
|---|
public XDefaultTranslator(XProject project)
| Method Detail |
|---|
public void setResourceBundle(java.util.ResourceBundle bundle)
setResourceBundle in interface XTranslatorbundle - the translation resource bundlepublic java.lang.String translate(java.lang.String key)
translate in interface XTranslatorkey - the key string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||