Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.googletalkaccregwizz
Class GoogleTalkAccountRegistrationWizard

java.lang.Object
  extended by net.java.sip.communicator.service.gui.AccountRegistrationWizard
      extended by net.java.sip.communicator.plugin.jabberaccregwizz.JabberAccountRegistrationWizard
          extended by net.java.sip.communicator.plugin.googletalkaccregwizz.GoogleTalkAccountRegistrationWizard

public class GoogleTalkAccountRegistrationWizard
extends JabberAccountRegistrationWizard

The GoogleTalkAccountRegistrationWizard is an implementation of the AccountRegistrationWizard for the Google Talk protocol. It should allow the user to create and configure a new Google Talk account.

Author:
Lubomir Marinov, Yana Stamcheva

Field Summary
static String PAGE_IMAGE
          A constant pointing to the Aim protocol wizard page image.
static String PROTOCOL
          The Google Talk protocol name.
static String PROTOCOL_ICON
          A constant pointing to the Google Talk protocol logo image.
 
Constructor Summary
GoogleTalkAccountRegistrationWizard(WizardContainer wizardContainer)
          Creates an instance of GoogleTalkAccountRegistrationWizard.
 
Method Summary
 String getAccountIconPath()
          Returns the account icon path.
protected  String getCreateAccountButtonLabel()
          Return the string for add existing account button.
protected  String getCreateAccountLabel()
          Return the string for create new account button.
protected  JabberAccountCreationFormService getCreateAccountService()
          Returns an instance of CreateAccountService through which the user could create an account.
 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.
 boolean isWebSignupSupported()
          Returns true if the web sign up is supported by the current implementation, false - otherwise.
 void webSignup()
          Opens a browser on the sign up page.
 
Methods inherited from class net.java.sip.communicator.plugin.jabberaccregwizz.JabberAccountRegistrationWizard
getExistingAccountLabel, getFirstPageIdentifier, getHomeLinkLabel, getLastPageIdentifier, getPages, getRegistration, getServerFromUserName, getSimpleForm, getSize, getSummary, installAccount, loadAccount, 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 Google Talk protocol name.

See Also:
Constant Field Values

PROTOCOL_ICON

public static final String PROTOCOL_ICON
A constant pointing to the Google Talk protocol logo image.

See Also:
Constant Field Values

PAGE_IMAGE

public static final String PAGE_IMAGE
A constant pointing to the Aim protocol wizard page image.

See Also:
Constant Field Values
Constructor Detail

GoogleTalkAccountRegistrationWizard

public GoogleTalkAccountRegistrationWizard(WizardContainer wizardContainer)
Creates an instance of GoogleTalkAccountRegistrationWizard.

Parameters:
wizardContainer - the wizard container, where this wizard is added
Method Detail

getPages

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

Overrides:
getPages in class JabberAccountRegistrationWizard
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 JabberAccountRegistrationWizard
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 JabberAccountRegistrationWizard
Returns:
byte[]

getPageImage

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

Overrides:
getPageImage in class JabberAccountRegistrationWizard
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 JabberAccountRegistrationWizard
Returns:
String

getProtocolDescription

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

Overrides:
getProtocolDescription in class JabberAccountRegistrationWizard
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 JabberAccountRegistrationWizard
Returns:
an example string, which should indicate to the user how the user name should look like.

getUsernameLabel

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

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

getCreateAccountButtonLabel

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

Overrides:
getCreateAccountButtonLabel in class JabberAccountRegistrationWizard
Returns:
the string for add existing account button.

getCreateAccountLabel

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

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

getProtocol

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

Overrides:
getProtocol in class JabberAccountRegistrationWizard
Returns:
the protocol name

getProtocolIconPath

public String getProtocolIconPath()
Returns the protocol icon path.

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

getAccountIconPath

public String getAccountIconPath()
Returns the account icon path.

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

webSignup

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

Overrides:
webSignup in class JabberAccountRegistrationWizard

isWebSignupSupported

public boolean isWebSignupSupported()
Returns true if the web sign up is supported by the current implementation, false - otherwise.

Overrides:
isWebSignupSupported in class JabberAccountRegistrationWizard
Returns:
true if the web sign up is supported by the current implementation, false - otherwise

getCreateAccountService

protected JabberAccountCreationFormService 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 JabberAccountRegistrationWizard
Returns:
an instance of CreateAccountService

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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