diff options
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/utils')
-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(); + } } |