|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.service.gui.AccountRegistrationWizard
net.java.sip.communicator.plugin.jabberaccregwizz.JabberAccountRegistrationWizard
public class JabberAccountRegistrationWizard
The JabberAccountRegistrationWizard is an implementation of the AccountRegistrationWizard for the Jabber protocol. It should allow the user to create and configure a new Jabber account.
| Constructor Summary | |
|---|---|
JabberAccountRegistrationWizard(WizardContainer wizardContainer)
Creates an instance of JabberAccountRegistrationWizard. |
|
| 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. |
protected String |
getExistingAccountLabel()
Return the string for add existing account button. |
Object |
getFirstPageIdentifier()
Returns the identifier of the page to show first in the wizard. |
protected String |
getHomeLinkLabel()
Return the string for home page link label. |
byte[] |
getIcon()
Implements the AccountRegistrationWizard.getIcon method. |
Object |
getLastPageIdentifier()
Returns the identifier of the page to show last in the wizard. |
byte[] |
getPageImage()
Implements the AccountRegistrationWizard.getPageImage method. |
Iterator<WizardPage> |
getPages()
Returns the set of pages contained in this wizard. |
Iterator<WizardPage> |
getPages(JabberAccountRegistration registration)
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. |
JabberAccountRegistration |
getRegistration()
Returns the registration object, which will store all the data through the wizard. |
protected String |
getServerFromUserName(String userName)
Parse the server part from the jabber id and set it to server as default value. |
Object |
getSimpleForm(boolean isCreateAccount)
Returns a simple account registration form that would be the first form shown to the user. |
Object |
getSimpleForm(JabberAccountRegistration registration,
boolean isCreateAccount)
Returns the first wizard page. |
Dimension |
getSize()
Returns the size of this wizard. |
Iterator<Map.Entry<String,String>> |
getSummary()
Returns the set of data that user has entered through this wizard. |
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 jabber id field. |
protected ProtocolProviderService |
installAccount(ProtocolProviderFactory providerFactory,
String userName,
String passwd)
Creates an account for the given user and password. |
boolean |
isWebSignupSupported()
Returns true if the web sign up is supported by the current
implementation, false - otherwise. |
void |
loadAccount(ProtocolProviderService protocolProvider)
Fills the User ID and Password fields in this panel with the data coming from the given protocolProvider. |
ProtocolProviderService |
signin()
Installs the account defined in this wizard. |
ProtocolProviderService |
signin(String userName,
String password)
Installs the account defined in this wizard. |
void |
webSignup()
Opens the Gmail signup URI in the OS's default browser. |
| 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 |
| Constructor Detail |
|---|
public JabberAccountRegistrationWizard(WizardContainer wizardContainer)
wizardContainer - the wizard container, where this wizard
is added| Method Detail |
|---|
public byte[] getIcon()
AccountRegistrationWizard.getIcon method.
Returns the icon to be used for this wizard.
getIcon in class AccountRegistrationWizardpublic byte[] getPageImage()
AccountRegistrationWizard.getPageImage method.
Returns the image used to decorate the wizard page
getPageImage in class AccountRegistrationWizardpublic String getProtocolName()
AccountRegistrationWizard.getProtocolName
method. Returns the protocol name for this wizard.
getProtocolName in class AccountRegistrationWizardpublic String getProtocolDescription()
AccountRegistrationWizard.getProtocolDescription
method. Returns the description of the protocol for this wizard.
getProtocolDescription in class AccountRegistrationWizardpublic Iterator<WizardPage> getPages()
getPages in class AccountRegistrationWizardpublic Iterator<WizardPage> getPages(JabberAccountRegistration registration)
registration - the registration object
public Iterator<Map.Entry<String,String>> getSummary()
getSummary in class AccountRegistrationWizard
public ProtocolProviderService signin()
throws OperationFailedException
signin in class AccountRegistrationWizardOperationFailedException - if the operation didn't succeed
public ProtocolProviderService signin(String userName,
String password)
throws OperationFailedException
signin in class AccountRegistrationWizarduserName - the user name to sign in withpassword - the password to sign in with
OperationFailedException - if the operation didn't succeed
protected ProtocolProviderService installAccount(ProtocolProviderFactory providerFactory,
String userName,
String passwd)
throws OperationFailedException
providerFactory - the ProtocolProviderFactory which will create
the accountuserName - the user identifierpasswd - the password
OperationFailedException - if the operation didn't succeedpublic void loadAccount(ProtocolProviderService protocolProvider)
loadAccount in class AccountRegistrationWizardprotocolProvider - The ProtocolProviderService to load the
data from.public JabberAccountRegistration getRegistration()
public Dimension getSize()
getSize in class AccountRegistrationWizardpublic Object getFirstPageIdentifier()
getFirstPageIdentifier in class AccountRegistrationWizardpublic Object getLastPageIdentifier()
getLastPageIdentifier in class AccountRegistrationWizardpublic String getUserNameExample()
getUserNameExample in class AccountRegistrationWizardprotected String getServerFromUserName(String userName)
userName - the full JID that we'd like to parse.
public void webSignup()
webSignup in class AccountRegistrationWizardpublic boolean isWebSignupSupported()
true if the web sign up is supported by the current
implementation, false - otherwise.
isWebSignupSupported in class AccountRegistrationWizardtrue if the web sign up is supported by the current
implementation, false - otherwisepublic Object getSimpleForm(boolean isCreateAccount)
getSimpleForm in class AccountRegistrationWizardisCreateAccount - indicates if the simple form should be opened as
a create account form or as a login form
public Object getSimpleForm(JabberAccountRegistration registration,
boolean isCreateAccount)
registration - the registration objectisCreateAccount - indicates if the simple form should be opened as
a create account form or as a login form
public String getProtocol()
public String getProtocolIconPath()
public String getAccountIconPath()
protected JabberAccountCreationFormService getCreateAccountService()
protected String getUsernameLabel()
protected String getCreateAccountButtonLabel()
protected String getCreateAccountLabel()
protected String getExistingAccountLabel()
protected String getHomeLinkLabel()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||