SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.utils
Class Smiley

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.utils.Smiley

public class Smiley
extends Object

The Smiley is used to store a smiley.

Author:
Yana Stamcheva, Lubomir Marinov

Constructor Summary
Smiley(ImageID imageID, String[] smileyStrings, String description)
          Creates an instance of Smiley, by specifying the smiley image identifier and the strings corresponding to it.
 
Method Summary
 String getDefaultString()
          Returns the default String corresponding for this smiley.
 String getDescription()
          Returns the description of this smiley.
 ImageID getImageID()
          Returns the identifier of the image corresponding to this smiley.
 String getImagePath()
          Returns the path of the image corresponding to this smiley.
 String getImagePath(ResourceManagementService resourcesService)
          Returns the path of the image corresponding to this smiley.
 List<String> getSmileyStrings()
          Returns the set of Strings corresponding to this smiley.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Smiley

public Smiley(ImageID imageID,
              String[] smileyStrings,
              String description)
Creates an instance of Smiley, by specifying the smiley image identifier and the strings corresponding to it.

Parameters:
imageID - The image identifier of the smiley icon.
smileyStrings - A set of strings corresponding to the smiley icon.
description - the description of the smiley
Method Detail

getSmileyStrings

public List<String> getSmileyStrings()
Returns the set of Strings corresponding to this smiley.

Returns:
the set of Strings corresponding to this smiley.

getDescription

public String getDescription()
Returns the description of this smiley.

Returns:
the description of this smiley.

getDefaultString

public String getDefaultString()
Returns the default String corresponding for this smiley. For example ":-)".

Returns:
the default String corresponding for this smiley.

getImageID

public ImageID getImageID()
Returns the identifier of the image corresponding to this smiley.

Returns:
the identifier of the image corresponding to this smiley.

getImagePath

public String getImagePath()
Returns the path of the image corresponding to this smiley.

Returns:
the path of the image corresponding to this smiley.

getImagePath

public String getImagePath(ResourceManagementService resourcesService)
Returns the path of the image corresponding to this smiley.

Parameters:
resourcesService - The ResourceManagementService required to get the image URL.
Returns:
the path of the image corresponding to this smiley.

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.