|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.yasl.util.YASLResourceBundleHelper
Method Summary | |
static String |
getStringFromBundle(String bundle,
String messageId)
Returns the string mapped to messageId from the resource bundle. |
static String |
getStringFromBundle(String bundle,
String messageId,
ClassLoader classLoader)
Returns the string mapped to messageId from the resource bundle. |
static String |
getStringFromBundle(String bundle,
String messageId,
Locale locale)
Returns the string mapped to messageId from the resource bundle. |
static String |
getStringFromBundle(String bundle,
String messageId,
Locale locale,
ClassLoader classLoader)
Returns the string mapped to messageId from the resource bundle. |
static ImageIcon |
loadImageIcon(String iconName)
Loads an image as an ImageIcon. |
static ImageIcon |
loadImageIcon(String iconName,
ClassLoader classLoader)
Loads an image as an ImageIcon. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static String getStringFromBundle(String bundle, String messageId)
If the resource bundle or messageId do not exist, the method will return ???bundle??? or ???messageId???.
bundle
- StringmessageId
- String
public static String getStringFromBundle(String bundle, String messageId, Locale locale)
If the resource bundle or messageId do not exist, the method will return ???bundle??? or ???messageId???.
bundle
- StringmessageId
- Stringlocale
- Locale
public static String getStringFromBundle(String bundle, String messageId, ClassLoader classLoader)
If the resource bundle or messageId do not exist, the method will return ???bundle??? or ???messageId???.
bundle
- StringmessageId
- StringclassLoader
- ClassLoader
public static String getStringFromBundle(String bundle, String messageId, Locale locale, ClassLoader classLoader)
If the resource bundle or messageId do not exist, the method will return ???bundle??? or ???messageId???.
bundle
- StringmessageId
- Stringlocale
- LocaleclassLoader
- ClassLoader
public static ImageIcon loadImageIcon(String iconName)
Will return null when there are problems loading the image.
iconName
- String
public static ImageIcon loadImageIcon(String iconName, ClassLoader classLoader)
Will return null when there are problems loading the image.
This method should be used if the class loader for the resource is different from that used for the YASLResourceBundleHelper class. For example, if a resource is dynamically loaded from a jar file.
iconName
- StringclassLoader
- ClassLoader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |