aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2008-07-17 14:28:39 +0000
committerDamian Minkov <damencho@jitsi.org>2008-07-17 14:28:39 +0000
commitc9895da98f512cc4db0b73b7e4a2b4b9ed140e47 (patch)
tree16759ecc944346bd17bc5977712589cba00c4794 /src/net/java/sip/communicator
parent0376d8fe6f6e22eaadc128084e67499f3eb0a158 (diff)
downloadjitsi-c9895da98f512cc4db0b73b7e4a2b4b9ed140e47.zip
jitsi-c9895da98f512cc4db0b73b7e4a2b4b9ed140e47.tar.gz
jitsi-c9895da98f512cc4db0b73b7e4a2b4b9ed140e47.tar.bz2
Adding new method in Resource Management Service to get image path for the given image key.
Diffstat (limited to 'src/net/java/sip/communicator')
-rw-r--r--src/net/java/sip/communicator/impl/resources/ResourceManagementServiceImpl.java5
-rw-r--r--src/net/java/sip/communicator/service/resources/ResourceManagementService.java96
2 files changed, 100 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/resources/ResourceManagementServiceImpl.java b/src/net/java/sip/communicator/impl/resources/ResourceManagementServiceImpl.java
index 2713546..49b041a 100644
--- a/src/net/java/sip/communicator/impl/resources/ResourceManagementServiceImpl.java
+++ b/src/net/java/sip/communicator/impl/resources/ResourceManagementServiceImpl.java
@@ -310,6 +310,11 @@ public class ResourceManagementServiceImpl
}
return getImageURLForPath(path);
}
+
+ public String getImagePath(String key)
+ {
+ return findString(key, imageResourceBundle);
+ }
public URL getImageURLForPath(String path)
{
diff --git a/src/net/java/sip/communicator/service/resources/ResourceManagementService.java b/src/net/java/sip/communicator/service/resources/ResourceManagementService.java
index cbb8bbc..0be9d58 100644
--- a/src/net/java/sip/communicator/service/resources/ResourceManagementService.java
+++ b/src/net/java/sip/communicator/service/resources/ResourceManagementService.java
@@ -17,21 +17,115 @@ import java.util.*;
public interface ResourceManagementService
{
// Color pack methods
+ /**
+ * Loads an Color value for the given key
+ *
+ * @param key The identifier of the color.
+ * @return The color value as int.
+ */
public int getColor(String key);
+
+ /**
+ * Loads an Color value for the given key
+ *
+ * @param key The identifier of the color.
+ * @return The color value as String.
+ */
public String getColorString(String key);
- // Image pack methods
+
+ /**
+ * Loads a stream from a given path.
+ *
+ * @param path The path of the stream.
+ * @return The stream for the given identifier.
+ */
public InputStream getImageInputStreamForPath(String path);
+
+ /**
+ * Loads a stream from a given identifier.
+ *
+ * @param streamKey The identifier of the stream.
+ * @return The stream for the given identifier.
+ */
public InputStream getImageInputStream(String streamKey);
+
+ /**
+ * Loads an url from a given identifier.
+ *
+ * @param urlKey The identifier of the url.
+ * @return The url for the given identifier.
+ */
public URL getImageURL(String urlKey);
+
+ /**
+ * Loads an url from a given path.
+ *
+ * @param path The path for the url.
+ * @return The url for the given identifier.
+ */
public URL getImageURLForPath(String path);
+ /**
+ * Returns the value of the given key for image resources.
+ *
+ * @param key The key.
+ * @return String value for the given image key.
+ */
+ public String getImagePath(String key);
+
// Language pack methods
+ /**
+ * Returns an internationalized string corresponding to the given key.
+ *
+ * @param key The key of the string.
+ * @return An internationalized string corresponding to the given key.
+ */
public String getI18NString(String key);
+
+ /**
+ * Returns an internationalized string corresponding to the given key.
+ *
+ * @param key The key of the string.
+ * @param l The locale.
+ * @return An internationalized string corresponding to the given key and
+ * given locale.
+ */
public String getI18NString(String key, Locale l);
+
+ /**
+ * Returns an internationalized string corresponding to the given key.
+ *
+ * @param key The key of the string.
+ * @param params params to be replaced in the returned string
+ * @return An internationalized string corresponding to the given key.
+ */
public String getI18NString(String key, String[] params);
+
+ /**
+ * Returns an internationalized string corresponding to the given key.
+ *
+ * @param key The key of the string
+ * @param params params to be replaced in the returned string.
+ * @param l The locale.
+ * @return An internationalized string corresponding to the given key.
+ */
public String getI18NString(String key, String[] params, Locale l);
+
+ /**
+ * Returns an internationalized string corresponding to the given key.
+ *
+ * @param key The key of the string.
+ * @return An internationalized string corresponding to the given key.
+ */
public char getI18nMnemonic(String key);
+
+ /**
+ * Returns an internationalized string corresponding to the given key.
+ *
+ * @param key The key of the string.
+ * @return An internationalized string corresponding to the given key.
+ */
public char getI18nMnemonic(String key, Locale l);
// Settings pack methods