i3mclient.i3m
Class GUIText

java.lang.Object
  |
  +--i3mclient.i3m.GUIText

public class GUIText
extends Object

Controls all gui texts (with different languages).

Author:
Dirk Plate, Henning Schaefer, Gunther Wuerz

Constructor Summary
GUIText()
          Constructor.
 
Method Summary
static GUIText getInstance()
          Returns an instance of this class (singleton construction)
 String getText(String element)
          Get a text with translation
 String getText(String element, boolean doTranslate)
          Get a text with or without translation.
 void setLanguage(String language)
          Set current language.
 void store()
          Store the file on hard disc.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUIText

public GUIText()
Constructor.

Method Detail

getInstance

public static GUIText getInstance()
Returns an instance of this class (singleton construction)

Returns:
The unique instance of this class

store

public void store()
Store the file on hard disc.


getText

public String getText(String element)
Get a text with translation

Parameters:
element - The text identifier of the wanted string
Returns:
The text in the current language

getText

public String getText(String element,
                      boolean doTranslate)
Get a text with or without translation.

Parameters:
element - The text identifier of the wanted string
doTranslate - Translate the text or not
Returns:
The text (translated or not)

setLanguage

public void setLanguage(String language)
Set current language. All texts will be returned in this language

Parameters:
language - The language short string.
See Also:
I3M.LANGUAGESHORT