public class AimAccountRegistrationWizard extends DesktopAccountRegistrationWizard
Constructor and Description |
---|
AimAccountRegistrationWizard(WizardContainer wizardContainer)
Creates an instance of AimAccountRegistrationWizard.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getFirstPageIdentifier()
Returns the identifier of the page to show first in the wizard.
|
byte[] |
getIcon()
Returns the protocol icon that will be shown on the left of the protocol
name in the list, where user will choose the protocol to register to.
|
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 WizardPage-s for this
wizard.
|
java.lang.String |
getProtocolDescription()
Returns a short description of the protocol that will be shown on the
right of the protocol name in the list, where user will choose the
protocol to register to.
|
java.lang.String |
getProtocolName()
Returns the protocol name that will be shown in the list, where user
will choose the protocol to register to.
|
AimAccountRegistration |
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.awt.Dimension |
getSize()
Returns the size of this wizard.
|
java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> |
getSummary()
Returns a set of key-value pairs that will represent the summary for
this wizard.
|
java.lang.String |
getUserNameExample()
Returns an example string, which should indicate to the user how the
user name should look like.
|
ProtocolProviderService |
installAccount(ProtocolProviderFactory providerFactory,
java.lang.String user,
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 UIN and Password fields in this panel with the data comming
from the given protocolProvider.
|
ProtocolProviderService |
signin()
Installs the account created through this wizard.
|
ProtocolProviderService |
signin(java.lang.String userName,
java.lang.String password)
Defines the operations that will be executed when the user clicks on
the wizard "service.gui.SIGN_IN" button.
|
void |
webSignup()
Defines the operation that will be executed when user clicks on the
"Sign up" link.
|
accountRemoved, getForgotPasswordLink, getForgotPasswordLinkName, getWizardContainer, isAdvancedConfigurationEnabled, isHidden, isModification, isPreferredProtocol, isSimpleFormEnabled, setModification, setWizardContainer
public AimAccountRegistrationWizard(WizardContainer wizardContainer)
wizardContainer
- the wizard container, where this wizard is addedpublic byte[] getIcon()
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()
getProtocolName
in class AccountRegistrationWizard
public java.lang.String getProtocolDescription()
getProtocolDescription
in class AccountRegistrationWizard
public java.util.Iterator<WizardPage> getPages()
getPages
in class AccountRegistrationWizard
public 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
public 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
public ProtocolProviderService installAccount(ProtocolProviderFactory providerFactory, java.lang.String user, java.lang.String passwd) throws OperationFailedException
providerFactory
- the ProtocolProviderFactory which will create the
accountuser
- the user identifierpasswd
- the passwordOperationFailedException
public void loadAccount(ProtocolProviderService protocolProvider)
loadAccount
in class AccountRegistrationWizard
protocolProvider
- The ProtocolProviderService to load
the data from.public AimAccountRegistration 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
java.lang.UnsupportedOperationException
- if the web sign up operation is
not supported by the current implementation.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 form
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.