| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--planetj.common.TranslationManager
| Field Summary | |
static Locale | 
SPANISH
 | 
| Constructor Summary | |
TranslationManager()
 | 
|
| Method Summary | |
 ResourceBundle | 
getCurrentLabelsBundle()
Gets the CurrentBundle for the being used for this translationManager.  | 
 Locale | 
getCurrentLocale()
Gets the current Locale being used by the TranslationManager.  | 
 ResourceBundle | 
getCurrentMessageBundle()
Gets the CurrentBundle for the being used for this translationManager.  | 
 String | 
getCurrentPropFileBundle()
Gets the CurrentBundle for the being used for this translationManager.  | 
 String | 
getMessageTranslation(String key)
Gets the value of translation.  | 
 String | 
getMessageTranslation(String key,
                      Object[] parms)
Gets the value of translation.  | 
 Object | 
getTranslation(Object translationId)
Gets the value of translation.  | 
 String | 
getTranslation(String key)
Gets the value of translation.  | 
 Object | 
getTranslation(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(Locale newLocale)
Sets the CurrentLocale to be used for this translationManager.  | 
 void | 
setPropertyBundleForLabels(String pb)
allows user to set a property bundle for labels to their choice.  | 
 void | 
setPropertyBundleForMessages(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 | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final Locale SPANISH
| Constructor Detail | 
public TranslationManager()
| Method Detail | 
public ResourceBundle getCurrentLabelsBundle()
public Locale getCurrentLocale()
public ResourceBundle getCurrentMessageBundle()
public String getCurrentPropFileBundle()
public String getMessageTranslation(String key)
key - the String that is to be translated.
public String getMessageTranslation(String key,
                                    Object[] parms)
key - the String that is to be translated.
public Object getTranslation(Object translationId)
translationId - the String or Vector of Strings that are to be translated.
public String getTranslation(String key)
key - the String that is to be translated.
public Object getTranslation(Vector translationId)
translationId - the Vector of Strings that are to be translated.
public static void resetSingleton()
public void setCurrentLocale(Locale newLocale)
newLocale - the Locale that is to be used by this TranslationManager.public void setPropertyBundleForLabels(String pb)
public void setPropertyBundleForMessages(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 | ||||||||||