|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An AttributeEditorTranslator is used to translate the names
and values of attributes in an AttributeEditor for the display.
The instance has to be notified of changes in the language by calling the
method setLocale(Locale).
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener that is notified of locale
changes. |
java.lang.String |
getName(java.lang.String name)
Returns the translation for the given name. |
java.lang.String[] |
getNameTranslations()
Returns the base names for the resource bundles this translator is using for names |
java.lang.String |
getValue(java.lang.String name,
java.lang.String value)
Returns the translation for the given value. |
java.lang.String[] |
getValueTranslations()
Returns the base names for the resource bundles this translator is using for value |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a previously added PropertyChangeListener. |
void |
setLocale(java.util.Locale locale)
Sets the new locale, the properties files for the new language will be loaded |
| Method Detail |
public void setLocale(java.util.Locale locale)
locale - the new localepublic java.lang.String getName(java.lang.String name)
name - The full path name of an attribute
public java.lang.String getValue(java.lang.String name,
java.lang.String value)
name - The full path name of an attributevalue - The value to translate
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener that is notified of locale
changes.
listener - The listener to addpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener.
listener - The listener to removepublic java.lang.String[] getNameTranslations()
public java.lang.String[] getValueTranslations()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||