|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jeta.open.i18n.I18N
public class I18N
This is a wrapper class around I18NHelper
Constructor Summary | |
---|---|
I18N()
|
Method Summary | |
---|---|
static int |
compareToIgnoreCase(String str1,
String str2)
|
static boolean |
equals(char[] str1,
char[] str2)
Compares two string arrays in a Locale independent way. |
static boolean |
equals(String str1,
String str2)
Compares two strings in a Locale independent way. |
static boolean |
equalsIgnoreCase(String str1,
String str2)
Compares two strings in a Locale independent way. |
static String |
format(String template,
Object arg1)
This is a helper routine that formats a message string that takes 1 argument in the current locale |
static String |
format(String template,
Object[] arguments)
A wrapper routine around I18NHelper for formatting locale specific messages. |
static String |
format(String template,
Object arg1,
Object arg2)
This is a helper routine that formats a message string that takes 2 arguments in the current locale |
static String |
format(String template,
Object arg1,
Object arg2,
Object arg3)
This is a helper routine that formats a message string that takes 3 arguments in the current locale |
static String |
generateCSVList(Collection objs)
iterates over the collection of objects and creates a string that contains the objects separated by a comma (or the locale version of a CSV list) |
static String |
generateCSVList(String[] strs)
iterates over the collection of objects and creates a string that contains the objects separated by a comma (or the locale version of a CSV list). |
static String |
getLocalizedDialogLabel(String resourceName)
Returns the locale string for the given resource name with the addition of a colon on the end (for western languages). |
static String |
getLocalizedMessage(String resourceName)
Gets the locale string for the given resource name. |
static String |
getResource(String resourceName)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public I18N()
Method Detail |
---|
public static int compareToIgnoreCase(String str1, String str2)
public static boolean equals(char[] str1, char[] str2)
str1
- the first string to comparestr2
- the second string to compare
public static boolean equals(String str1, String str2)
str1
- the first string to comparestr2
- the second string to compare
public static boolean equalsIgnoreCase(String str1, String str2)
str1
- the first string to comparestr2
- the second string to compare
public static String format(String template, Object[] arguments)
template
- the template name of the messagearguments
- an array or arguments required for the message
public static String format(String template, Object arg1)
template
- the name of the message template to usearg1
- the argument value for the message tempalte
public static String format(String template, Object arg1, Object arg2)
template
- the name of the message template to usearg1
- the first argument value for the message tempaltearg2
- the second argument value for the message tempalte
public static String format(String template, Object arg1, Object arg2, Object arg3)
template
- the name of the message template to usearg1
- the first argument value for the message tempaltearg2
- the second argument value for the message tempaltearg3
- the third argument value for the message tempalte
public static String generateCSVList(String[] strs)
public static String generateCSVList(Collection objs)
public static String getLocalizedDialogLabel(String resourceName)
resourceName
- the name of the resource to lookup in the properties files.
public static String getLocalizedMessage(String resourceName)
resourceName
- the name of the resource to lookup in the properties files.
public static String getResource(String resourceName)
resourceName
- the name of the resource to lookup in the properties files.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |