|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jaxfront.core.util.GUIComponentNLS
public class GUIComponentNLS
This class manages National Language Support (GUIComponentNLS) for JAXFront. As defined in the file xui.xsd one may define one or more own language(s) for JAXFront's buttons, menus, dialogs and so on.
Method Summary | |
---|---|
static GUIComponentNLS |
getInstance()
Returns the singleton instance of this class. |
java.lang.String |
getNLSText(java.lang.String keyName,
java.lang.String defaultName)
Returns the NLSText for a key as defined in the file xui_??. |
java.lang.String |
getNLSText(java.lang.String language,
java.lang.String keyName,
java.lang.String defaultName)
Returns the NLSText for a key as defined in the file xui_??. |
java.lang.String |
getNLSText(java.lang.String language,
java.lang.String keyName,
java.lang.String defaultName,
java.lang.String[] variables)
Returns the NLSText for a key as defined in the file xui_??. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static GUIComponentNLS getInstance()
public java.lang.String getNLSText(java.lang.String language, java.lang.String keyName, java.lang.String defaultName, java.lang.String[] variables)
language
- lookup languagekeyName
- the key name of the GUIComponentNLS entrydefaultName
- the default NLSText if the file xui_??.nls couldn't be loadedvariables
- variable to replace placeholders (%1, %2...) in the nls textpublic java.lang.String getNLSText(java.lang.String language, java.lang.String keyName, java.lang.String defaultName)
language
- lookup languagekeyName
- the key name of the GUIComponentNLS entrydefaultName
- the default NLSText if the file xui_??.nls couldn't be loadedpublic java.lang.String getNLSText(java.lang.String keyName, java.lang.String defaultName)
keyName
- the key name of the GUIComponentNLS entrydefaultName
- the default NLSText if the file xui_??.nls couldn't be loaded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |