|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.michab.util.Localiser
A support class for localisation purposes.
Method Summary | |
static java.lang.String |
localise(java.util.ResourceBundle b,
java.lang.String key)
Read the value for the passed key from the resource bundle. |
static java.lang.String |
localise(java.util.ResourceBundle b,
java.lang.String key,
java.lang.String deflt)
Read the value for the passed key from the resource bundle. |
static javax.swing.ImageIcon |
localiseIcon(java.util.ResourceBundle b,
java.lang.String key)
Return an icon for the given key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static javax.swing.ImageIcon localiseIcon(java.util.ResourceBundle b, java.lang.String key)
b
- The resource bundle to use for resource lookup.key
- The resource name to lookup.
public static java.lang.String localise(java.util.ResourceBundle b, java.lang.String key)
null
is returned. Note that the passed key will
be extended with the action's key before it is tried to resolve. E.g.
if the actions key is A_KEY and the parameter 'key''s value is 'name' then
it is tried to resolve 'A_KEY.name' in the resource bundle.
b
- The resource bundle used to resolve the key.key
- The key used for resource resolution.
null
if the key could
not be found.localise( ResourceBundle, String, String )
public static java.lang.String localise(java.util.ResourceBundle b, java.lang.String key, java.lang.String deflt)
b
- The resource bundle used to resolve the key.key
- The key used for resource resolution.deflt
- The value to return in case the key could not be resolved.
deflt
argument if the key could not be found.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |