com.ontimize.util.swing.selectablelist
Class SelectableItemRenderer.TranslatedItem
java.lang.Object
com.ontimize.util.swing.selectablelist.SelectableItemRenderer.TranslatedItem
- All Implemented Interfaces:
- Internationalization
- Direct Known Subclasses:
- SelectableItemRenderer.SelectableItem
- Enclosing class:
- SelectableItemRenderer
- public static class SelectableItemRenderer.TranslatedItem
- extends java.lang.Object
- implements Internationalization
|
Field Summary |
protected java.util.ResourceBundle |
res
|
protected java.lang.String |
text
|
protected java.lang.String |
translatedText
|
| Methods inherited from class java.lang.Object |
clone, 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
SelectableItemRenderer.TranslatedItem
public SelectableItemRenderer.TranslatedItem(java.lang.String text,
java.util.ResourceBundle res)
getText
public java.lang.String getText()
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()
hashCode
public int hashCode()
equals
public boolean equals(java.lang.Object o)