com.sun.rave.web.ui.util
Class Bundle

java.lang.Object
  extended by com.sun.rave.web.ui.util.Bundle

public class Bundle
extends java.lang.Object

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

Bundle

public Bundle(java.lang.Class clazz)

Construct a Bundle instance for the specified class.

Parameters:
clazz - Class for which to construct a bundle instance
Method Detail

message

public java.lang.String message(java.lang.String key)

Return the message for the specified key.

Parameters:
key - Message key to look up

message

public java.lang.String message(java.lang.String key,
                                java.lang.Object[] params)

Return the message for the specified key, after substituting the specified parameters.

Parameters:
key - Message key to look up
params - Replacement parameters