Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.replacement.smiley
Class SmileyImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.replacement.smiley.SmileyImpl
All Implemented Interfaces:
Smiley

public class SmileyImpl
extends Object
implements Smiley

The Smiley is used to store a smiley.

Author:
Yana Stamcheva, Lubomir Marinov

Constructor Summary
SmileyImpl(String 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.
 String getImageID()
          Returns the identifier of the image corresponding to this smiley.
 String getImagePath()
          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

SmileyImpl

public SmileyImpl(String 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.

Specified by:
getSmileyStrings in interface Smiley
Returns:
the set of Strings corresponding to this smiley.

getDescription

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

Specified by:
getDescription in interface Smiley
Returns:
the description of this smiley.

getDefaultString

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

Specified by:
getDefaultString in interface Smiley
Returns:
the default String corresponding for this smiley.

getImageID

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

Specified by:
getImageID in interface 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.

Specified by:
getImagePath in interface Smiley
Returns:
the path of the image corresponding to this smiley.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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