Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.sip2sipaccregwizz
Class Sip2SipAccountRegistrationWizard

java.lang.Object
  extended by net.java.sip.communicator.service.gui.AccountRegistrationWizard
      extended by net.java.sip.communicator.service.gui.ExtendedAccountRegistrationWizard
          extended by net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard
              extended by net.java.sip.communicator.plugin.sip2sipaccregwizz.Sip2SipAccountRegistrationWizard

public class Sip2SipAccountRegistrationWizard
extends SIPAccountRegistrationWizard

The Sip2SipAccountRegistrationWizard is an implementation of the AccountRegistrationWizard for the SIP protocol. It should allow the user to create and configure a new IP Tel SIP account.

Author:
Yana Stamcheva

Field Summary
(package private)  CreateSip2SipAccountForm createAccountForm
          The create account form.
static String PROTOCOL
          The protocol name.
 
Constructor Summary
Sip2SipAccountRegistrationWizard(WizardContainer wizardContainer)
          Creates an instance of IptelAccountRegistrationWizard.
 
Method Summary
 String getAccountIconPath()
          Returns the account icon path.
protected  String getCreateAccountLabel()
          Return the string for create new account button.
protected  SIPAccountCreationFormService getCreateAccountService()
          Returns an instance of CreateAccountService through which the user could create an account.
protected  String getExistingAccountLabel()
          Return the string for add existing account button.
 byte[] getIcon()
          Implements the AccountRegistrationWizard.getIcon method.
 byte[] getPageImage()
          Implements the AccountRegistrationWizard.getPageImage method.
 Iterator<WizardPage> getPages()
          Returns the set of pages contained in this wizard.
 String getProtocol()
          Returns the protocol name as listed in "ProtocolNames" or just the name of the service.
 String getProtocolDescription()
          Implements the AccountRegistrationWizard.getProtocolDescription method.
 String getProtocolIconPath()
          Returns the protocol icon path.
 String getProtocolName()
          Implements the AccountRegistrationWizard.getProtocolName method.
 Object getSimpleForm(boolean isCreateAccount)
          Returns a simple account registration form that would be the first form shown to the user.
 String getUserNameExample()
          Returns an example string, which should indicate to the user how the user name should look like.
protected  String getUsernameLabel()
          Returns the display label used for the sip id field.
 String getWebSignupLinkName()
          Returns the name of the web sign up link.
 void webSignup()
          Opens the browser on the page sign up
 
Methods inherited from class net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard
getFirstPageIdentifier, getLastPageIdentifier, getPages, getRegistration, getSimpleForm, getSize, getSummary, isSignupSupported, isWebSignupSupported, loadAccount, setCreateAccountView, setRegistration, signin, signin
 
Methods inherited from class net.java.sip.communicator.service.gui.AccountRegistrationWizard
accountRemoved, getForgotPasswordLink, getForgotPasswordLinkName, getWizardContainer, isHidden, isModification, isPreferredProtocol, isSimpleFormEnabled, setModification, setWizardContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOCOL

public static final String PROTOCOL
The protocol name.

See Also:
Constant Field Values

createAccountForm

CreateSip2SipAccountForm createAccountForm
The create account form.

Constructor Detail

Sip2SipAccountRegistrationWizard

public Sip2SipAccountRegistrationWizard(WizardContainer wizardContainer)
Creates an instance of IptelAccountRegistrationWizard.

Parameters:
wizardContainer - the wizard container
Method Detail

getPages

public Iterator<WizardPage> getPages()
Returns the set of pages contained in this wizard.

Overrides:
getPages in class SIPAccountRegistrationWizard
Returns:
Iterator

getSimpleForm

public Object getSimpleForm(boolean isCreateAccount)
Returns a simple account registration form that would be the first form shown to the user. Only if the user needs more settings she'll choose to open the advanced wizard, consisted by all pages.

Overrides:
getSimpleForm in class SIPAccountRegistrationWizard
Parameters:
isCreateAccount - indicates if the simple form should be opened as a create account form or as a login form
Returns:
a simple account registration form

getIcon

public byte[] getIcon()
Implements the AccountRegistrationWizard.getIcon method. Returns the icon to be used for this wizard.

Overrides:
getIcon in class SIPAccountRegistrationWizard
Returns:
byte[]

getPageImage

public byte[] getPageImage()
Implements the AccountRegistrationWizard.getPageImage method. Returns the image used to decorate the wizard page

Overrides:
getPageImage in class SIPAccountRegistrationWizard
Returns:
byte[] the image used to decorate the wizard page

getProtocolName

public String getProtocolName()
Implements the AccountRegistrationWizard.getProtocolName method. Returns the protocol name for this wizard.

Overrides:
getProtocolName in class SIPAccountRegistrationWizard
Returns:
String

getProtocolDescription

public String getProtocolDescription()
Implements the AccountRegistrationWizard.getProtocolDescription method. Returns the description of the protocol for this wizard.

Overrides:
getProtocolDescription in class SIPAccountRegistrationWizard
Returns:
String

getUserNameExample

public String getUserNameExample()
Returns an example string, which should indicate to the user how the user name should look like.

Overrides:
getUserNameExample in class SIPAccountRegistrationWizard
Returns:
an example string, which should indicate to the user how the user name should look like.

getProtocol

public String getProtocol()
Returns the protocol name as listed in "ProtocolNames" or just the name of the service.

Overrides:
getProtocol in class SIPAccountRegistrationWizard
Returns:
the protocol name

getProtocolIconPath

public String getProtocolIconPath()
Returns the protocol icon path.

Overrides:
getProtocolIconPath in class SIPAccountRegistrationWizard
Returns:
the protocol icon path

getAccountIconPath

public String getAccountIconPath()
Returns the account icon path.

Overrides:
getAccountIconPath in class SIPAccountRegistrationWizard
Returns:
the account icon path

webSignup

public void webSignup()
Opens the browser on the page sign up

Overrides:
webSignup in class AccountRegistrationWizard

getWebSignupLinkName

public String getWebSignupLinkName()
Returns the name of the web sign up link.

Overrides:
getWebSignupLinkName in class SIPAccountRegistrationWizard
Returns:
the name of the web sign up link

getCreateAccountService

protected SIPAccountCreationFormService getCreateAccountService()
Returns an instance of CreateAccountService through which the user could create an account. This method is meant to be implemented by specific protocol provider wizards.

Overrides:
getCreateAccountService in class SIPAccountRegistrationWizard
Returns:
an instance of CreateAccountService

getUsernameLabel

protected String getUsernameLabel()
Returns the display label used for the sip id field.

Overrides:
getUsernameLabel in class SIPAccountRegistrationWizard
Returns:
the sip id display label string.

getExistingAccountLabel

protected String getExistingAccountLabel()
Return the string for add existing account button.

Overrides:
getExistingAccountLabel in class SIPAccountRegistrationWizard
Returns:
the string for add existing account button.

getCreateAccountLabel

protected String getCreateAccountLabel()
Return the string for create new account button.

Overrides:
getCreateAccountLabel in class SIPAccountRegistrationWizard
Returns:
the string for create new account button.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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