|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.resources.ResourceManagementServiceImpl
public class ResourceManagementServiceImpl
A default implementation of the ResourceManagementService.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.resources.ResourceManagementService |
|---|
DEFAULT_LOCALE_CONFIG |
| Constructor Summary | |
|---|---|
ResourceManagementServiceImpl()
Initializes already registered default resource packs. |
|
| Method Summary | |
|---|---|
Iterator<Locale> |
getAvailableLocales()
All the locales in the language pack. |
int |
getColor(String key)
Returns the int representation of the color corresponding to the given key. |
String |
getColorString(String key)
Returns the string representation of the color corresponding to the given key. |
char |
getI18nMnemonic(String key)
Returns an internationalized string corresponding to the given key. |
char |
getI18nMnemonic(String key,
Locale locale)
Returns an internationalized string corresponding to the given key. |
String |
getI18NString(String key)
Returns an internationalized string corresponding to the given key. |
String |
getI18NString(String key,
Locale locale)
Returns an internationalized string corresponding to the given key. |
String |
getI18NString(String key,
String[] params)
Returns an internationalized string corresponding to the given key. |
String |
getI18NString(String key,
String[] params,
Locale locale)
Returns an internationalized string corresponding to the given key. |
ImageIcon |
getImage(String imageID)
Loads an image from a given image identifier. |
byte[] |
getImageInBytes(String imageID)
Loads an image from a given image identifier. |
InputStream |
getImageInputStream(String streamKey)
Returns the InputStream of the image corresponding to the given key. |
InputStream |
getImageInputStreamForPath(String path)
Returns the InputStream of the image corresponding to the given path. |
String |
getImagePath(String key)
Returns the image path corresponding to the given key. |
URL |
getImageURL(String urlKey)
Returns the URL of the image corresponding to the given key. |
URL |
getImageURLForPath(String path)
Returns the URL of the image corresponding to the given path. |
InputStream |
getSettingsInputStream(String streamKey)
Returns a stream from a given identifier. |
InputStream |
getSettingsInputStream(String streamKey,
Class<?> resourceClass)
Returns a stream from a given identifier, obtained through the class loader of the given resourceClass. |
int |
getSettingsInt(String key)
Returns the int value of the corresponding configuration key. |
String |
getSettingsString(String key)
Returns the int value of the corresponding configuration key. |
URL |
getSettingsURL(String urlKey)
Returns an URL from a given identifier. |
String |
getSoundPath(String soundKey)
Returns the path of the sound corresponding to the given property key. |
URL |
getSoundURL(String urlKey)
Returns the URL of the sound corresponding to the given property key. |
URL |
getSoundURLForPath(String path)
Returns the URL of the sound corresponding to the given path. |
File |
prepareSkinBundleFromZip(File zipFile)
Builds a new skin bundle from the zip file content. |
void |
serviceChanged(org.osgi.framework.ServiceEvent event)
Handles all ServiceEvents corresponding to ResourcePack being registered or unregistered. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ResourceManagementServiceImpl()
| Method Detail |
|---|
public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged in interface org.osgi.framework.ServiceListenerevent - the ServiceEvent that notified uspublic int getColor(String key)
getColor in interface ResourceManagementServicekey - The key of the color in the colors properties file.
public String getColorString(String key)
getColorString in interface ResourceManagementServicekey - The key of the color in the colors properties file.
public InputStream getImageInputStreamForPath(String path)
getImageInputStreamForPath in interface ResourceManagementServicepath - The path to the image file.
public InputStream getImageInputStream(String streamKey)
getImageInputStream in interface ResourceManagementServicestreamKey - The identifier of the image in the resource properties
file.
public URL getImageURL(String urlKey)
getImageURL in interface ResourceManagementServiceurlKey - The identifier of the image in the resource properties file.
public String getImagePath(String key)
getImagePath in interface ResourceManagementServicekey - The identifier of the image in the resource properties file.
public URL getImageURLForPath(String path)
getImageURLForPath in interface ResourceManagementServicepath - The path to the given image file.
public Iterator<Locale> getAvailableLocales()
getAvailableLocales in interface ResourceManagementServicepublic String getI18NString(String key)
getI18NString in interface ResourceManagementServicekey - The identifier of the string in the resources properties file.
public String getI18NString(String key,
Locale locale)
getI18NString in interface ResourceManagementServicekey - The identifier of the string in the resources properties file.locale - The locale.
public String getI18NString(String key,
String[] params)
getI18NString in interface ResourceManagementServicekey - The identifier of the string.params - the parameters to pass to the localized string
public String getI18NString(String key,
String[] params,
Locale locale)
getI18NString in interface ResourceManagementServicekey - The identifier of the string in the resources properties
file.params - the parameters to pass to the localized stringlocale - The locale.
public char getI18nMnemonic(String key)
getI18nMnemonic in interface ResourceManagementServicekey - The identifier of the string in the resources properties file.
public char getI18nMnemonic(String key,
Locale locale)
getI18nMnemonic in interface ResourceManagementServicekey - The identifier of the string in the resources properties file.locale - The locale that we'd like to receive the result in.
public String getSettingsString(String key)
getSettingsString in interface ResourceManagementServicekey - The identifier of the string in the resources properties file.
public int getSettingsInt(String key)
getSettingsInt in interface ResourceManagementServicekey - The identifier of the string in the resources properties file.
public URL getSettingsURL(String urlKey)
getSettingsURL in interface ResourceManagementServiceurlKey - The identifier of the url.
public InputStream getSettingsInputStream(String streamKey)
getSettingsInputStream in interface ResourceManagementServicestreamKey - The identifier of the stream.
public InputStream getSettingsInputStream(String streamKey,
Class<?> resourceClass)
getSettingsInputStream in interface ResourceManagementServicestreamKey - The identifier of the stream.resourceClass - the resource class through which the resource would
be obtained
public URL getSoundURL(String urlKey)
getSoundURL in interface ResourceManagementServiceurlKey - The key of the setting.
public URL getSoundURLForPath(String path)
getSoundURLForPath in interface ResourceManagementServicepath - the path, for which we're looking for a sound URL
public String getSoundPath(String soundKey)
getSoundPath in interface ResourceManagementServicesoundKey - the key, for the sound path
public byte[] getImageInBytes(String imageID)
getImageInBytes in interface ResourceManagementServiceimageID - The identifier of the image.
public ImageIcon getImage(String imageID)
getImage in interface ResourceManagementServiceimageID - The identifier of the image.
public File prepareSkinBundleFromZip(File zipFile)
throws Exception
prepareSkinBundleFromZip in interface ResourceManagementServicezipFile - Zip file with skin information.
Exception - When something goes wrong.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||