|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.rave.web.ui.util.Bundle
public class Bundle
Utility methods for localized messages for design time classes. This class
expects a resource bundle named Bundle-DT
in the same pacakge
as the class passed to its constructor. This class is also useful for
design-time behavior in component renderers and so exists in this runtime
package.
Constructor Summary | |
---|---|
Bundle(java.lang.Class clazz)
Construct a Bundle instance for the specified
class. |
Method Summary | |
---|---|
java.lang.String |
message(java.lang.String key)
Return the message for the specified key. |
java.lang.String |
message(java.lang.String key,
java.lang.Object[] params)
Return the message for the specified key, after substituting the specified parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Bundle(java.lang.Class clazz)
Construct a Bundle
instance for the specified
class.
clazz
- Class for which to construct a bundle instanceMethod Detail |
---|
public java.lang.String message(java.lang.String key)
Return the message for the specified key.
key
- Message key to look uppublic java.lang.String message(java.lang.String key, java.lang.Object[] params)
Return the message for the specified key, after substituting the specified parameters.
key
- Message key to look upparams
- Replacement parameters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |