|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.common.TranslationManager
Field Summary | |
static java.util.Locale |
SPANISH
|
Constructor Summary | |
TranslationManager()
|
Method Summary | |
java.util.ResourceBundle |
getCurrentLabelsBundle()
Gets the CurrentBundle for the being used for this translationManager. |
java.util.Locale |
getCurrentLocale()
Gets the current Locale being used by the TranslationManager. |
java.util.ResourceBundle |
getCurrentMessageBundle()
Gets the CurrentBundle for the being used for this translationManager. |
java.lang.String |
getCurrentPropFileBundle()
Gets the CurrentBundle for the being used for this translationManager. |
java.lang.String |
getMessageTranslation(java.lang.String key)
Gets the value of translation. |
java.lang.String |
getMessageTranslation(java.lang.String key,
java.lang.Object[] parms)
Gets the value of translation. |
java.lang.Object |
getTranslation(java.lang.Object translationId)
Gets the value of translation. |
java.lang.String |
getTranslation(java.lang.String key)
Gets the value of translation. |
java.lang.Object |
getTranslation(java.util.Vector translationId)
Gets the value of translation. |
static void |
resetSingleton()
Reset the cached singleton so that future selects can refresh the data from the database. |
void |
setCurrentLocale(java.util.Locale newLocale)
Sets the CurrentLocale to be used for this translationManager. |
void |
setPropertyBundleForLabels(java.lang.String pb)
allows user to set a property bundle for labels to their choice. |
void |
setPropertyBundleForMessages(java.lang.String pb)
allows user to set a property bundle for messages to their choice. |
void |
setUseDefaultPropertyFileForComponentText(boolean answer)
if user specifies they want a external property file as the translation key then this need to be set to true |
static TranslationManager |
singleton()
Return a single instance of this class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.util.Locale SPANISH
Constructor Detail |
public TranslationManager()
Method Detail |
public java.util.ResourceBundle getCurrentLabelsBundle()
public java.util.Locale getCurrentLocale()
public java.util.ResourceBundle getCurrentMessageBundle()
public java.lang.String getCurrentPropFileBundle()
public java.lang.String getMessageTranslation(java.lang.String key)
key
- the String that is to be translated.
public java.lang.String getMessageTranslation(java.lang.String key, java.lang.Object[] parms)
key
- the String that is to be translated.
public java.lang.Object getTranslation(java.lang.Object translationId)
translationId
- the String or Vector of Strings that are to be translated.
public java.lang.String getTranslation(java.lang.String key)
key
- the String that is to be translated.
public java.lang.Object getTranslation(java.util.Vector translationId)
translationId
- the Vector of Strings that are to be translated.
public static void resetSingleton()
public void setCurrentLocale(java.util.Locale newLocale)
newLocale
- the Locale that is to be used by this TranslationManager.public void setPropertyBundleForLabels(java.lang.String pb)
public void setPropertyBundleForMessages(java.lang.String pb)
public void setUseDefaultPropertyFileForComponentText(boolean answer)
public static TranslationManager singleton()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |