|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbforms.util.MessageResources
public class MessageResources
base class for handling messages
| Field Summary | |
|---|---|
static String |
LOCALE_KEY
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
MessageResources()
|
|
| Method Summary | |
|---|---|
static Locale |
getLocale(HttpServletRequest request)
DOCUMENT ME! |
static String |
getMessage(HttpServletRequest request,
String msg)
Get the message from ResourceBundle. |
static String |
getMessage(String msg,
Locale loc)
Retrieve message from ResourceBundle. |
static String |
getMessage(String msg,
Locale locale,
String defaultMsg)
Get the message from ResourceBundle. |
static String |
getMessage(String msg,
Locale loc,
String[] parms)
Retrieve message from ResourceBundle and replace parameter "{x}" with values in parms array. |
static void |
setLocale(HttpServletRequest request,
Locale locale)
DOCUMENT ME! |
static void |
setSubClass(String subClass)
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String LOCALE_KEY
| Constructor Detail |
|---|
public MessageResources()
| Method Detail |
|---|
public static void setLocale(HttpServletRequest request,
Locale locale)
request - DOCUMENT ME!locale - DOCUMENT ME!public static Locale getLocale(HttpServletRequest request)
request - DOCUMENT ME!
public static String getMessage(HttpServletRequest request,
String msg)
request - DOCUMENT ME!msg - DOCUMENT ME!
public static String getMessage(String msg,
Locale locale,
String defaultMsg)
msgString - : Message key to lookup.localeLocale - : Locale object to map message with good
ResourceBundle.defaultMsgString - : String to return if the lookup message
key is not found.
String : Message resolve.
public static String getMessage(String msg,
Locale loc)
msgString - : Message key to lookup.locLocale - : Locale object to map message with good
ResourceBundle.
String : Message resolve, null if not found.
public static String getMessage(String msg,
Locale loc,
String[] parms)
msgString - : Message key to lookup.locLocale - : Locale object to map message with good
ResourceBundle.parmsString[] - : Parameters to replace "{x}" in message .
String : Message resolve with parameter replaced,
null if message key not found.public static void setSubClass(String subClass)
subClass - DOCUMENT ME!
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||