semorg.gui.util
Class Messages

java.lang.Object
  extended by semorg.gui.util.Messages

public class Messages
extends Object

This class loads the dictionary files and inserts all strings seen by the user. It considers thereby the chosen language by the user.


Field Summary
private static ResourceBundle RESOURCE_BUNDLE_DE
          The resource bundle, which contains the german strings of the application.
private static ResourceBundle RESOURCE_BUNDLE_EN
          The resource bundle, which contains the english strings of the application.
 
Constructor Summary
private Messages()
           
 
Method Summary
static String getString(String key)
          Delivers for given key and the current language setting a string used in the GUI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_BUNDLE_DE

private static ResourceBundle RESOURCE_BUNDLE_DE
The resource bundle, which contains the german strings of the application.


RESOURCE_BUNDLE_EN

private static ResourceBundle RESOURCE_BUNDLE_EN
The resource bundle, which contains the english strings of the application.

Constructor Detail

Messages

private Messages()
Method Detail

getString

public static String getString(String key)
Delivers for given key and the current language setting a string used in the GUI.

Parameters:
key - the key of the wanted string.
Returns:
externalized string according to the given string. If the key is not found in the bundle it returns the key string surrounded by '!'.