Ontimize 5.2072EN

com.ontimize.report
Class TranslatedItem

java.lang.Object
  extended bycom.ontimize.report.TranslatedItem
All Implemented Interfaces:
Internationalization
Direct Known Subclasses:
SelectableFunctionItem, SelectableItem, SelectableItem

public class TranslatedItem
extends java.lang.Object
implements Internationalization


Field Summary
protected  java.util.ResourceBundle res
           
protected  java.lang.String text
           
protected  java.lang.String translatedText
           
 
Fields inherited from interface com.ontimize.gui.i18n.Internationalization
DEBUG_LANGUAGE
 
Constructor Summary
TranslatedItem(java.lang.String text, java.util.ResourceBundle res)
           
 
Method Summary
 java.lang.String getText()
           
 java.util.Vector getTextsToTranslate()
          Returns all the texts in the element suitable for being translated.
 int hashCode()
           
 void setComponentLocale(java.util.Locale l)
           
 void setResourceBundle(java.util.ResourceBundle res)
          Sets the language resource bundle.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

text

protected java.lang.String text

translatedText

protected java.lang.String translatedText

res

protected java.util.ResourceBundle res
Constructor Detail

TranslatedItem

public TranslatedItem(java.lang.String text,
                      java.util.ResourceBundle res)
Method Detail

setResourceBundle

public void setResourceBundle(java.util.ResourceBundle res)
Description copied from interface: Internationalization
Sets the language resource bundle. When the application changes the configured language, for all the objects that implement this interface this method must be called with the new file.
The method must translate all the elements that have texts in the GUI

Specified by:
setResourceBundle in interface Internationalization
Parameters:
res - the new language bundle.

setComponentLocale

public void setComponentLocale(java.util.Locale l)
Specified by:
setComponentLocale in interface Internationalization

getTextsToTranslate

public java.util.Vector getTextsToTranslate()
Description copied from interface: Internationalization
Returns all the texts in the element suitable for being translated.

Specified by:
getTextsToTranslate in interface Internationalization
Returns:
all the texts in the element suitable for being translated.

toString

public java.lang.String toString()

getText

public java.lang.String getText()

hashCode

public int hashCode()

Ontimize