|
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
public abstract class AccountRegistrationWizard
The AccountRegistrationWizard is meant to provide a wizard which will guide the user through a protocol account registration. Each AccountRegistrationWizard should provide a set of WizardPages, an icon, the name and the description of the corresponding protocol.
Note that the AccountRegistrationWizard is NOT a real wizard, it doesn't handle wizard events. Each UI Service implementation should provide its own wizard UI control, which should manage all the events, panels and buttons, etc.
It depends on the wizard implementation in the UI for whether or not a summary will be shown to the user before "Finish".
| Constructor Summary | |
|---|---|
AccountRegistrationWizard()
|
|
| Method Summary | |
|---|---|
void |
accountRemoved(ProtocolProviderService protocolProvider)
Indicates that the account corresponding to the given protocolProvider has been removed. |
abstract Object |
getFirstPageIdentifier()
Returns the identifier of the first account registration wizard page. |
String |
getForgotPasswordLink()
Returns the forgot password link if one exists. |
String |
getForgotPasswordLinkName()
Returns the forgot password link name. |
abstract 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. |
abstract Object |
getLastPageIdentifier()
Returns the identifier of the last account registration wizard page. |
abstract byte[] |
getPageImage()
Returns the image that will be shown on the left of the wizard pages. |
abstract Iterator<WizardPage> |
getPages()
Returns the set of WizardPage-s for this wizard. |
abstract 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. |
abstract String |
getProtocolName()
Returns the protocol display name that will be shown in the list, where user will choose the protocol to register to. |
abstract Object |
getSimpleForm(boolean isCreateAccount)
Returns a simple account registration form that would be the first form shown to the user. |
abstract Dimension |
getSize()
Returns the preferred dimensions of this wizard. |
abstract Iterator<Map.Entry<String,String>> |
getSummary()
Returns a set of key-value pairs that will represent the summary for this wizard. |
abstract String |
getUserNameExample()
Returns an example string, which should indicate to the user how the user name should look like. |
WizardContainer |
getWizardContainer()
Returns the wizard container, where all pages are added. |
boolean |
isHidden()
Indicates if a wizard is hidden. |
boolean |
isModification()
Indicates if this wizard is modifying an existing account or is creating a new one. |
boolean |
isPreferredProtocol()
Indicates if this wizard is for the preferred protocol. |
boolean |
isSimpleFormEnabled()
Indicates whether this wizard enables the simple "sign in" form shown when the user opens the application for the first time. |
boolean |
isWebSignupSupported()
Returns true if the web sign up is supported by the current
implementation, false - otherwise. |
abstract void |
loadAccount(ProtocolProviderService protocolProvider)
Loads all data concerning the given ProtocolProviderService. |
void |
setModification(boolean isModification)
Sets the modification property to indicate if this wizard is opened for a modification. |
protected void |
setWizardContainer(WizardContainer wizardContainer)
Sets the wizard container, where all pages are added. |
abstract ProtocolProviderService |
signin()
Defines the operations that will be executed when the user clicks on the wizard "Signin" button. |
abstract ProtocolProviderService |
signin(String userName,
String password)
Defines the operations that will be executed when the user clicks on the wizard "Signin" button. |
void |
webSignup()
Defines the operation that will be executed when user clicks on the "Sign up" link. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccountRegistrationWizard()
| Method Detail |
|---|
public abstract byte[] getIcon()
public abstract byte[] getPageImage()
public abstract String getProtocolName()
public abstract String getProtocolDescription()
public abstract String getUserNameExample()
public abstract void loadAccount(ProtocolProviderService protocolProvider)
protocolProvider - The ProtocolProviderService to
load data from.public abstract Iterator<WizardPage> getPages()
public abstract Object getFirstPageIdentifier()
public abstract Object getLastPageIdentifier()
public abstract Iterator<Map.Entry<String,String>> getSummary()
public abstract ProtocolProviderService signin()
throws OperationFailedException
OperationFailedException - if the operation didn't succeed
public abstract ProtocolProviderService signin(String userName,
String password)
throws OperationFailedException
userName - the user name to sign in withpassword - the password to sign in with
OperationFailedException - if the operation didn't succeedpublic void accountRemoved(ProtocolProviderService protocolProvider)
protocolProvider - the protocol provider that has been removedpublic boolean isWebSignupSupported()
true if the web sign up is supported by the current
implementation, false - otherwise.
true if the web sign up is supported by the current
implementation, false - otherwise
public void webSignup()
throws UnsupportedOperationException
UnsupportedOperationException - if the web sign up operation is
not supported by the current implementation.public String getForgotPasswordLinkName()
public String getForgotPasswordLink()
public abstract Dimension getSize()
public abstract Object getSimpleForm(boolean isCreateAccount)
isCreateAccount - indicates if the simple form should be opened as
a create account form or as a login form
public void setModification(boolean isModification)
isModification - indicates if this wizard is opened for modification
or for creating a new account.public boolean isModification()
true to indicate that this wizard is currently in
modification mode, false - otherwise.public boolean isSimpleFormEnabled()
true if the simple "Sign in" form is enabled or
false otherwise.public WizardContainer getWizardContainer()
protected void setWizardContainer(WizardContainer wizardContainer)
wizardContainer - the wizard container, where all pages are addedpublic boolean isPreferredProtocol()
public boolean isHidden()
|
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 | |||||||||