public class Resources
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADD_WORD_ICON
The add word icon.
|
static java.lang.String |
PERSONAL_DICTIONARY
The personal dictionary icon.
|
static java.lang.String |
PLUGIN_ICON
The spell check plugin icon, shown in the configuration form.
|
static java.lang.String |
WORD_EXCLUDE
The word exclude icon.
|
static java.lang.String |
WORD_INCLUDE
The word include icon.
|
Constructor and Description |
---|
Resources() |
Modifier and Type | Method and Description |
---|---|
static javax.swing.ImageIcon |
getFlagImage(java.lang.String resource)
Loads a flag image from a given image identifier.
|
static javax.swing.ImageIcon |
getImage(java.lang.String imageID)
Loads an image from a given image identifier.
|
static byte[] |
getImageInBytes(java.lang.String imageID)
Loads an image from a given image identifier.
|
static org.jitsi.service.resources.ResourceManagementService |
getResources()
Returns the ResourceManagementService through which we obtain
resources like images and localized texts.
|
static java.lang.String |
getString(java.lang.String key)
Returns an internationalized string corresponding to the given key.
|
public static final java.lang.String PLUGIN_ICON
public static final java.lang.String ADD_WORD_ICON
public static final java.lang.String PERSONAL_DICTIONARY
public static final java.lang.String WORD_INCLUDE
public static final java.lang.String WORD_EXCLUDE
public static java.lang.String getString(java.lang.String key)
key
- The key of the string.public static javax.swing.ImageIcon getImage(java.lang.String imageID)
imageID
- The identifier of the image.public static javax.swing.ImageIcon getFlagImage(java.lang.String resource) throws java.io.IOException
resource
- iso code for flag to be retrieved.java.io.IOException
- if no such resource is availablepublic static byte[] getImageInBytes(java.lang.String imageID)
imageID
- The identifier of the image.public static org.jitsi.service.resources.ResourceManagementService getResources()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.