diff options
author | Yana Stamcheva <yana@jitsi.org> | 2010-09-07 15:30:40 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2010-09-07 15:30:40 +0000 |
commit | 7746c91783b490f5ca07d3b06a6d336ae1152253 (patch) | |
tree | ffd125368411c2ba3d2ebd80d0722a51bfef3d55 /src/net/java/sip/communicator/impl/gui/utils/Smiley.java | |
parent | 42fbfc39645660bf0ee18c718a9d6e9423e6f5e4 (diff) | |
download | jitsi-7746c91783b490f5ca07d3b06a6d336ae1152253.zip jitsi-7746c91783b490f5ca07d3b06a6d336ae1152253.tar.gz jitsi-7746c91783b490f5ca07d3b06a6d336ae1152253.tar.bz2 |
Support for video and photo previews in chat window provided by Purvesh Sahoo as part of its GSoC project.
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/utils/Smiley.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/utils/Smiley.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/utils/Smiley.java b/src/net/java/sip/communicator/impl/gui/utils/Smiley.java index a59ed17..8a6601f 100644 --- a/src/net/java/sip/communicator/impl/gui/utils/Smiley.java +++ b/src/net/java/sip/communicator/impl/gui/utils/Smiley.java @@ -32,6 +32,7 @@ public class Smiley * @param imageID The image identifier of the smiley icon. * @param smileyStrings A set of strings corresponding to the smiley * icon. + * @param description the description of the smiley */ public Smiley(ImageID imageID, String[] smileyStrings, String description) { @@ -95,4 +96,22 @@ public class Smiley return url.toString(); } + + /** + * Returns the path of the image corresponding to this smiley. + * @param resourcesService The ResourceManagementService required to get the + * image URL. + * @return the path of the image corresponding to this smiley. + */ + public String getImagePath(ResourceManagementService resourcesService) + { + URL url + = resourcesService + .getImageURL(this.getImageID().getId()); + + if(url == null) + return null; + + return url.toString(); + } } |