|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LanguageMethods
This interface provides a set of methods that should be added into components that has translateable text and support translation. Basically all these methods are already implemented in LanguageManager but it is much easier to call them directly from component.
SwingMethods
,
LanguageManager
Method Summary | |
---|---|
boolean |
isLanguageSet()
Returns whether this component registered in LanguageManager or not. |
void |
removeLanguage()
Unregisters component from LanguageManager. |
void |
removeLanguageUpdater()
Unregisters any custom language updater set for this component. |
void |
setLanguage(java.lang.String key,
java.lang.Object... data)
Registers component in LanguageManager under specified key and with specified formatting data. |
void |
setLanguageUpdater(LanguageUpdater updater)
Registers custom language updater for this component. |
void |
updateLanguage(java.lang.Object... data)
Updates component language and formatting data. |
void |
updateLanguage(java.lang.String key,
java.lang.Object... data)
Changes component language key and updates its language and formatting data. |
Method Detail |
---|
void setLanguage(java.lang.String key, java.lang.Object... data)
key
- language record keydata
- formatting datavoid updateLanguage(java.lang.Object... data)
data
- new formatting datavoid updateLanguage(java.lang.String key, java.lang.Object... data)
key
- new language keydata
- new formatting datavoid removeLanguage()
boolean isLanguageSet()
void setLanguageUpdater(LanguageUpdater updater)
updater
- component language updatervoid removeLanguageUpdater()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |