com.ontimize.report
Class TranslatedItem
java.lang.Object
com.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
|
|
Constructor Summary |
TranslatedItem(java.lang.String text,
java.util.ResourceBundle res)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
text
protected java.lang.String text
translatedText
protected java.lang.String translatedText
res
protected java.util.ResourceBundle res
TranslatedItem
public TranslatedItem(java.lang.String text,
java.util.ResourceBundle res)
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()