com.jaxfront.core.util
Class GUIComponentNLS

java.lang.Object
  extended by com.jaxfront.core.util.GUIComponentNLS

public class GUIComponentNLS
extends java.lang.Object

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.

Version:
1.60

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

getInstance

public static GUIComponentNLS getInstance()
Returns the singleton instance of this class.

Returns:
the singleton instance of this class

getNLSText

public 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_??.nls

Parameters:
language - lookup language
keyName - the key name of the GUIComponentNLS entry
defaultName - the default NLSText if the file xui_??.nls couldn't be loaded
variables - variable to replace placeholders (%1, %2...) in the nls text

getNLSText

public 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_??.nls

Parameters:
language - lookup language
keyName - the key name of the GUIComponentNLS entry
defaultName - the default NLSText if the file xui_??.nls couldn't be loaded

getNLSText

public java.lang.String getNLSText(java.lang.String keyName,
                                   java.lang.String defaultName)
Returns the NLSText for a key as defined in the file xui_??.nls in the default language.

Parameters:
keyName - the key name of the GUIComponentNLS entry
defaultName - the default NLSText if the file xui_??.nls couldn't be loaded