public class JabberAccountRegistrationWizard extends DesktopAccountRegistrationWizard
Constructor and Description |
---|
JabberAccountRegistrationWizard(WizardContainer wizardContainer)
Creates an instance of JabberAccountRegistrationWizard.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccountIconPath()
Returns the account icon path.
|
protected java.lang.String |
getCreateAccountButtonLabel()
Return the string for add existing account button.
|
protected java.lang.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 java.lang.String |
getExistingAccountLabel()
Return the string for add existing account button.
|
java.lang.Object |
getFirstPageIdentifier()
Returns the identifier of the page to show first in the wizard.
|
protected java.lang.String |
getHomeLinkLabel()
Return the string for home page link label.
|
byte[] |
getIcon()
Implements the
AccountRegistrationWizard.getIcon method. |
java.lang.Object |
getLastPageIdentifier()
Returns the identifier of the page to show last in the wizard.
|
byte[] |
getPageImage()
Implements the
AccountRegistrationWizard.getPageImage method. |
java.util.Iterator<WizardPage> |
getPages()
Returns the set of pages contained in this wizard.
|
java.util.Iterator<WizardPage> |
getPages(JabberAccountRegistration registration)
Returns the set of pages contained in this wizard.
|
java.lang.String |
getProtocol()
Returns the protocol name as listed in "ProtocolNames" or just the name
of the service.
|
java.lang.String |
getProtocolDescription()
Implements the
AccountRegistrationWizard.getProtocolDescription
method. |
java.lang.String |
getProtocolIconPath()
Returns the protocol icon path.
|
java.lang.String |
getProtocolName()
Implements the
AccountRegistrationWizard.getProtocolName
method. |
ProtocolProviderService |
getProtocolProvider()
Return the wizard's protocolProvider, if the wizard modifies an
account, null if it creates a new one
|
JabberAccountRegistration |
getRegistration()
Returns the registration object, which will store all the data through
the wizard.
|
java.lang.Object |
getSimpleForm(boolean isCreateAccount)
Returns a simple account registration form that would be the first form
shown to the user.
|
java.lang.Object |
getSimpleForm(JabberAccountRegistration registration,
boolean isCreateAccount)
Returns the first wizard page.
|
java.awt.Dimension |
getSize()
Returns the size of this wizard.
|
java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> |
getSummary()
Returns the set of data that user has entered through this wizard.
|
java.lang.String |
getUserNameExample()
Returns an example string, which should indicate to the user how the
user name should look like.
|
protected java.lang.String |
getUsernameLabel()
Returns the display label used for the jabber id field.
|
protected ProtocolProviderService |
installAccount(ProtocolProviderFactory providerFactory,
java.lang.String userName,
java.lang.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(java.lang.String userName,
java.lang.String password)
Installs the account defined in this wizard.
|
void |
webSignup()
Opens the Gmail signup URI in the OS's default browser.
|
accountRemoved, getForgotPasswordLink, getForgotPasswordLinkName, getWizardContainer, isAdvancedConfigurationEnabled, isHidden, isModification, isPreferredProtocol, isSimpleFormEnabled, setModification, setWizardContainer
public JabberAccountRegistrationWizard(WizardContainer wizardContainer)
wizardContainer
- the wizard container, where this wizard
is addedpublic byte[] getIcon()
AccountRegistrationWizard.getIcon
method.
Returns the icon to be used for this wizard.getIcon
in class AccountRegistrationWizard
public byte[] getPageImage()
AccountRegistrationWizard.getPageImage
method.
Returns the image used to decorate the wizard pagegetPageImage
in class AccountRegistrationWizard
public java.lang.String getProtocolName()
AccountRegistrationWizard.getProtocolName
method. Returns the protocol name for this wizard.getProtocolName
in class AccountRegistrationWizard
public java.lang.String getProtocolDescription()
AccountRegistrationWizard.getProtocolDescription
method. Returns the description of the protocol for this wizard.getProtocolDescription
in class AccountRegistrationWizard
public java.util.Iterator<WizardPage> getPages()
getPages
in class AccountRegistrationWizard
public java.util.Iterator<WizardPage> getPages(JabberAccountRegistration registration)
registration
- the registration objectpublic java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> getSummary()
getSummary
in class AccountRegistrationWizard
public ProtocolProviderService signin() throws OperationFailedException
signin
in class AccountRegistrationWizard
OperationFailedException
- if the operation didn't succeedpublic ProtocolProviderService signin(java.lang.String userName, java.lang.String password) throws OperationFailedException
signin
in class AccountRegistrationWizard
userName
- the user name to sign in withpassword
- the password to sign in withOperationFailedException
- if the operation didn't succeedprotected ProtocolProviderService installAccount(ProtocolProviderFactory providerFactory, java.lang.String userName, java.lang.String passwd) throws OperationFailedException
providerFactory
- the ProtocolProviderFactory which will create
the accountuserName
- the user identifierpasswd
- the passwordOperationFailedException
- if the operation didn't succeedpublic void loadAccount(ProtocolProviderService protocolProvider)
loadAccount
in class AccountRegistrationWizard
protocolProvider
- The ProtocolProviderService to load the
data from.public JabberAccountRegistration getRegistration()
public java.awt.Dimension getSize()
getSize
in class DesktopAccountRegistrationWizard
public java.lang.Object getFirstPageIdentifier()
getFirstPageIdentifier
in class AccountRegistrationWizard
public java.lang.Object getLastPageIdentifier()
getLastPageIdentifier
in class AccountRegistrationWizard
public java.lang.String getUserNameExample()
getUserNameExample
in class AccountRegistrationWizard
public void webSignup()
webSignup
in class AccountRegistrationWizard
public boolean isWebSignupSupported()
true
if the web sign up is supported by the current
implementation, false
- otherwise.isWebSignupSupported
in class AccountRegistrationWizard
true
if the web sign up is supported by the current
implementation, false
- otherwisepublic java.lang.Object getSimpleForm(boolean isCreateAccount)
getSimpleForm
in class AccountRegistrationWizard
isCreateAccount
- indicates if the simple form should be opened as
a create account form or as a login formpublic java.lang.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 formpublic java.lang.String getProtocol()
public java.lang.String getProtocolIconPath()
public java.lang.String getAccountIconPath()
protected JabberAccountCreationFormService getCreateAccountService()
protected java.lang.String getUsernameLabel()
protected java.lang.String getCreateAccountButtonLabel()
protected java.lang.String getCreateAccountLabel()
protected java.lang.String getExistingAccountLabel()
protected java.lang.String getHomeLinkLabel()
public ProtocolProviderService getProtocolProvider()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.