Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

java.lang.Object
  extended by net.java.sip.communicator.plugin.spellcheck.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:
Damian Johnson, Yana Stamcheva

Field Summary
static String ADD_WORD_ICON
          The add word icon.
static String PERSONAL_DICTIONARY
          The personal dictionary icon.
static String PLUGIN_ICON
          The spell check plugin icon, shown in the configuration form.
static String WORD_EXCLUDE
          The word exclude icon.
static String WORD_INCLUDE
          The word include icon.
 
Constructor Summary
Resources()
           
 
Method Summary
static ImageIcon getFlagImage(String resource)
          Loads a flag image from a given image identifier.
static ImageIcon getImage(String imageID)
          Loads an image from a given image identifier.
static byte[] getImageInBytes(String imageID)
          Loads an image from a given image identifier.
static ResourceManagementService getResources()
          Returns the ResourceManagementService through which we obtain resources like images and localized texts.
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

PLUGIN_ICON

public static final String PLUGIN_ICON
The spell check plugin icon, shown in the configuration form.

See Also:
Constant Field Values

ADD_WORD_ICON

public static final String ADD_WORD_ICON
The add word icon.

See Also:
Constant Field Values

PERSONAL_DICTIONARY

public static final String PERSONAL_DICTIONARY
The personal dictionary icon.

See Also:
Constant Field Values

WORD_INCLUDE

public static final String WORD_INCLUDE
The word include icon.

See Also:
Constant Field Values

WORD_EXCLUDE

public static final String WORD_EXCLUDE
The word exclude icon.

See Also:
Constant Field Values
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.

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.

getFlagImage

public static ImageIcon getFlagImage(String resource)
                              throws IOException
Loads a flag image from a given image identifier.

Parameters:
resource - iso code for flag to be retrieved.
Returns:
icon reflecting iso code
Throws:
IOException - if no such resource is available

getImageInBytes

public static byte[] getImageInBytes(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 through which we obtain resources like images and localized texts.

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.