Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

java.lang.Object
  extended by net.java.sip.communicator.plugin.jabberaccregwizz.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

Field Summary
static ImageID PAGE_IMAGE
          A constant pointing to the Aim protocol wizard page image.
static ImageID PROTOCOL_ICON
          A constant pointing to the Jabber protocol logo image.
 
Constructor Summary
Resources()
           
 
Method Summary
static byte[] getImage(ImageID imageID)
          Loads an image from a given image identifier.
static char getMnemonic(String key)
          Returns an internationalized string corresponding to the given key.
static InputStream getPropertyInputStream(String key)
          Returns the resource for the given key.
static ResourceManagementService getResources()
          Returns the ResourceManagementService.
static String getSettingsString(String key)
          Returns an internationalized string corresponding to the given key.
static String getString(String key)
          Returns an internationalized string corresponding to the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOCOL_ICON

public static ImageID PROTOCOL_ICON
A constant pointing to the Jabber protocol logo image.


PAGE_IMAGE

public static ImageID PAGE_IMAGE
A constant pointing to the Aim protocol wizard page image.

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.

getSettingsString

public static String getSettingsString(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.

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 byte[] getImage(ImageID imageID)
Loads an image from a given image identifier.

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

getPropertyInputStream

public static InputStream getPropertyInputStream(String key)
Returns the resource for the given key. This could be any resource stored in the resources.properties file of this bundle.

Parameters:
key - the key of the resource to search for
Returns:
the resource for the given key

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.