|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.util.swing.messaging.DefaultMessageResource
public class DefaultMessageResource
BasicMessageResource combines the functionality of a ResourceBundle and MessageFormat to make specific string resources availiable.
ResourceBundle
,
MessageFormat
Constructor Summary | |
---|---|
DefaultMessageResource(String bundleName)
Constructor |
Method Summary | |
---|---|
boolean |
containsKey(String key)
Returns whether given key has a value |
boolean |
equals(Object obj)
Gets whether given Object equals this MessageResource. |
String |
getBundleName()
Returns the name of associated ResourceBundle. |
Enumeration |
getKeys()
Returns an enumeration of all keys |
String |
getString(String key,
Object[] parameters)
Gets the String value for the specified key. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMessageResource(String bundleName)
Method Detail |
---|
public String getBundleName()
public boolean equals(Object obj)
equals
in class Object
Object.equals(Object)
public String getString(String key, Object[] parameters)
getString
in interface MessageResource
key
- identifies the valueparameters
- to fill in possible placeholders
public boolean containsKey(String key)
key
- the key to look up in the resource bundle
public Enumeration getKeys()
getKeys
in interface MessageResource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |