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

net.java.sip.communicator.impl.gui.main.contactlist.addcontact
Class NewContact

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.contactlist.addcontact.NewContact

public class NewContact
extends Object

The NewContact is meant to be used from the "Add Contact" wizard to collect all user choices through the wizard process.

Author:
Yana Stamcheva

Constructor Summary
NewContact()
           
 
Method Summary
 void addProtocolProvider(ProtocolProviderService protocolProvider)
          Adds a protocol provider to the list of protocol providers, where this contact will be added.
 MetaContactGroup getGroup()
          Returns a list of meta contact groups, where this contact should be added.
 ArrayList<ProtocolProviderService> getProtocolProviders()
          Returns a list of protocol providers, where this contact should be added.
 String getUin()
          Returns the identifier of the contact.
 void setGroup(MetaContactGroup group)
          Adds a group to the list of meta contact groups, where this contact will be added.
 void setUin(String uin)
          Sets the identifier of the contact.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewContact

public NewContact()
Method Detail

addProtocolProvider

public void addProtocolProvider(ProtocolProviderService protocolProvider)
Adds a protocol provider to the list of protocol providers, where this contact will be added.

Parameters:
protocolProvider - The ProtocolProviderService to add.

setGroup

public void setGroup(MetaContactGroup group)
Adds a group to the list of meta contact groups, where this contact will be added.

Parameters:
group - The MetaContactGroup to add.

setUin

public void setUin(String uin)
Sets the identifier of the contact.

Parameters:
uin - The String identifier.

getUin

public String getUin()
Returns the identifier of the contact.

Returns:
the identifier of the contact.

getGroup

public MetaContactGroup getGroup()
Returns a list of meta contact groups, where this contact should be added.

Returns:
a list of meta contact groups, where this contact should be added.

getProtocolProviders

public ArrayList<ProtocolProviderService> getProtocolProviders()
Returns a list of protocol providers, where this contact should be added.

Returns:
a list of protocol providers, where this contact should be added.

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

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