wt.clients.prodmgmt
Class ResourceHelper

java.lang.Object
  extended bywt.clients.prodmgmt.ResourceHelper

public class ResourceHelper
extends Object

ResourceHelper is a utility class with useful methods for internationalization. It is intended to be used throughout the wt.clients.prodgmmt package as a mechanism to access values in the resource bundle for the package.

Supported API: true

Extendable: false


Field Summary
private static ResourceBundle resource
           
private static String RESOURCE
           
 
Constructor Summary
ResourceHelper()
           
 
Method Summary
private static WTContext getContext()
          Get the current WTContext.
private static ResourceBundle getLabelsRB()
          Get the labels resource bundle.
static String getLocalizedMessage(String key, Object[] params)
          Deprecated.  
static String getLocalizedValue(String key)
          Deprecated.  
protected static void initResources()
          Initialize string resources for this component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static String RESOURCE

resource

private static ResourceBundle resource
Constructor Detail

ResourceHelper

public ResourceHelper()
Method Detail

getLabelsRB

private static ResourceBundle getLabelsRB()
Get the labels resource bundle.

Returns:
the labels resource bundle.

initResources

protected static void initResources()
Initialize string resources for this component.


getContext

private static WTContext getContext()
Get the current WTContext.

Returns:
the current WTContext

getLocalizedMessage

public static String getLocalizedMessage(String key,
                                         Object[] params)
Deprecated.  

Return a formatted localized message. See WTMessage

Parameters:
key - the key into the resource bundle
params - the object values to insert into the message
Returns:
the formatted localized message. If the key is invalid, the key itself is returned.

getLocalizedValue

public static String getLocalizedValue(String key)
Deprecated.  

Return a localized message. See WTMessage

Parameters:
key - the key into the resource bundle
Returns:
the localized message. If the key is invalid, the key itself is returned.