Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.whiteboard
Class Resources

java.lang.Object
  extended by net.java.sip.communicator.plugin.whiteboard.Resources

public class Resources
extends Object

The Resources class manages the access to the internationalization properties files and the image resources used in this plugin.

Author:
Yana Stamcheva

Constructor Summary
Resources()
           
 
Method Summary
static ImageIcon getImage(String imageID)
          Loads an image from a given image identifier.
static char getMnemonic(String key)
          Returns an internationalized string corresponding to the given key.
static ResourceManagementService getResources()
          Returns the ResourceManagementService.
static String getString(String key)
          Returns an internationalized string corresponding to the given key.
static String getString(String key, String[] params)
          Returns an internationalized string corresponding to the given key, by replacing all occurences of '?' with the given string param.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resources

public Resources()
Method Detail

getString

public static String getString(String key)
Returns an internationalized string corresponding to the given key.

Parameters:
key - The key of the string.
Returns:
An internationalized string corresponding to the given key.

getString

public static String getString(String key,
                               String[] params)
Returns an internationalized string corresponding to the given key, by replacing all occurences of '?' with the given string param.

Parameters:
key - The key of the string.
params - the params, that should replace {1}, {2}, etc. in the string given by the key parameter
Returns:
An internationalized string corresponding to the given key, by replacing all occurences of '?' with the given string param.

getMnemonic

public static char getMnemonic(String key)
Returns an internationalized string corresponding to the given key.

Parameters:
key - The key of the string.
Returns:
An internationalized string corresponding to the given key.

getImage

public static ImageIcon getImage(String imageID)
Loads an image from a given image identifier.

Parameters:
imageID - The identifier of the image.
Returns:
The image for the given identifier.

getResources

public static ResourceManagementService getResources()
Returns the ResourceManagementService.

Returns:
the ResourceManagementService.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.