Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.util.swing
Class SelectedObject

java.lang.Object
  extended by net.java.sip.communicator.util.swing.SelectedObject

public class SelectedObject
extends Object

A convenience class used to store combobox complex objects. The SelectedObject is used for all account and status combo boxes throughout this gui implementation.

Author:
Yana Stamcheva

Constructor Summary
SelectedObject(Icon icon, Object object)
          Creates an instance of SelectedObject by specifying the icon and object associated with it.
SelectedObject(String text, Icon icon, Object object)
          Creates an instance of SelectedObject by specifying the text, icon and object associated with it.
 
Method Summary
 Icon getIcon()
          Returns the icon of this SelectedObject.
 Object getObject()
          Returns the real object behind this SelectedObject.
 String getText()
          Returns the text of this SelectedObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectedObject

public SelectedObject(String text,
                      Icon icon,
                      Object object)
Creates an instance of SelectedObject by specifying the text, icon and object associated with it.

Parameters:
text - The text.
icon - The icon.
object - The object.

SelectedObject

public SelectedObject(Icon icon,
                      Object object)
Creates an instance of SelectedObject by specifying the icon and object associated with it.

Parameters:
icon - The icon.
object - The object.
Method Detail

getText

public String getText()
Returns the text of this SelectedObject.

Returns:
the text of this SelectedObject.

getIcon

public Icon getIcon()
Returns the icon of this SelectedObject.

Returns:
the icon of this SelectedObject.

getObject

public Object getObject()
Returns the real object behind this SelectedObject.

Returns:
the real object behind this SelectedObject.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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