|
Spiffy UI Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.spiffyui.server.JSLocaleUtil
public final class JSLocaleUtil
The JSLocaleUtil can handle finding the right filename of a JavaScript library for a given locale.
| Method Summary | |
|---|---|
static java.lang.String |
getFile(java.lang.String resourceName,
java.util.Locale locale,
ServletContext context)
Get the right file name for the specified resource name and the locale (which was already determined to be the best match locale). |
static java.util.List<java.util.Locale> |
getMinimumSupportedLocales(ServletContext context)
Get the list of minimum supported locales. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String getFile(java.lang.String resourceName,
java.util.Locale locale,
ServletContext context)
throws ServletException
resourceName - The resource name. If your looking for a file like date-en-US.js the the resource name is datelocale - The locale of the requested filecontext - the servlet context
ServletException - if there is an error accessing the servlet contextpublic static java.util.List<java.util.Locale> getMinimumSupportedLocales(ServletContext context)
context - the servlet context for loading the available locales
|
Spiffy UI Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||