Creates a specific account registration interface for the desktop application and moves desktop related methods to it.

cusax-fix
Yana Stamcheva 13 years ago
parent 4c40e7d787
commit df46a10644

@ -249,7 +249,9 @@ public void setCurrentWizard(AccountRegistrationWizard wizard)
{ {
this.currentWizard = wizard; this.currentWizard = wizard;
summaryPage.setPreferredSize(this.currentWizard.getSize()); if (wizard instanceof DesktopAccountRegistrationWizard)
summaryPage.setPreferredSize(
((DesktopAccountRegistrationWizard) currentWizard).getSize());
Iterator<WizardPage> i = wizard.getPages(); Iterator<WizardPage> i = wizard.getPages();

@ -22,7 +22,7 @@
* @author Yana Stamcheva * @author Yana Stamcheva
*/ */
public class AimAccountRegistrationWizard public class AimAccountRegistrationWizard
extends AccountRegistrationWizard extends DesktopAccountRegistrationWizard
{ {
/** /**
* The logger. * The logger.

@ -23,7 +23,7 @@
* @author LITZELMANN Cedric * @author LITZELMANN Cedric
*/ */
public class DictAccountRegistrationWizard public class DictAccountRegistrationWizard
extends AccountRegistrationWizard extends DesktopAccountRegistrationWizard
{ {
private final Logger logger private final Logger logger
= Logger.getLogger(DictAccountRegistrationWizard.class); = Logger.getLogger(DictAccountRegistrationWizard.class);

@ -23,7 +23,7 @@
* @author Emil Ivov * @author Emil Ivov
*/ */
public class GibberishAccountRegistrationWizard public class GibberishAccountRegistrationWizard
extends AccountRegistrationWizard extends DesktopAccountRegistrationWizard
{ {
private final Logger logger private final Logger logger
= Logger.getLogger(GibberishAccountRegistrationWizard.class); = Logger.getLogger(GibberishAccountRegistrationWizard.class);

@ -22,7 +22,7 @@
* @author Yana Stamcheva * @author Yana Stamcheva
*/ */
public class IcqAccountRegistrationWizard public class IcqAccountRegistrationWizard
extends AccountRegistrationWizard extends DesktopAccountRegistrationWizard
{ {
/** /**
* The logger. * The logger.

@ -23,7 +23,7 @@
* @author Lionel Ferreira & Michael Tarantino * @author Lionel Ferreira & Michael Tarantino
*/ */
public class IrcAccountRegistrationWizard public class IrcAccountRegistrationWizard
extends AccountRegistrationWizard extends DesktopAccountRegistrationWizard
{ {
private final Logger logger private final Logger logger
= Logger.getLogger(IrcAccountRegistrationWizard.class); = Logger.getLogger(IrcAccountRegistrationWizard.class);

@ -24,7 +24,7 @@
* @author Yana Stamcheva * @author Yana Stamcheva
*/ */
public class JabberAccountRegistrationWizard public class JabberAccountRegistrationWizard
extends AccountRegistrationWizard extends DesktopAccountRegistrationWizard
{ {
/** /**
* The logger. * The logger.

@ -22,7 +22,7 @@
* @author Yana Stamcheva * @author Yana Stamcheva
*/ */
public class MsnAccountRegistrationWizard public class MsnAccountRegistrationWizard
extends AccountRegistrationWizard extends DesktopAccountRegistrationWizard
{ {
private final Logger logger private final Logger logger
= Logger.getLogger(MsnAccountRegistrationWizard.class); = Logger.getLogger(MsnAccountRegistrationWizard.class);

@ -23,7 +23,7 @@
* @author Emil Ivov * @author Emil Ivov
*/ */
public class RssAccountRegistrationWizard public class RssAccountRegistrationWizard
extends AccountRegistrationWizard extends DesktopAccountRegistrationWizard
{ {
private final Logger logger private final Logger logger
= Logger.getLogger(RssAccountRegistrationWizard.class); = Logger.getLogger(RssAccountRegistrationWizard.class);

@ -25,7 +25,7 @@
* @author Grigorii Balutsel * @author Grigorii Balutsel
*/ */
public class SIPAccountRegistrationWizard public class SIPAccountRegistrationWizard
extends ExtendedAccountRegistrationWizard extends ExtendedDesktopAccountRegWizard
{ {
/** /**
* The first wizard page. * The first wizard page.

@ -32,7 +32,7 @@
* @author Shobhit Jindal * @author Shobhit Jindal
*/ */
public class SSHAccountRegistrationWizard public class SSHAccountRegistrationWizard
extends AccountRegistrationWizard extends DesktopAccountRegistrationWizard
{ {
private final Logger logger private final Logger logger
= Logger.getLogger(SSHAccountRegistrationWizard.class); = Logger.getLogger(SSHAccountRegistrationWizard.class);

@ -22,7 +22,7 @@
* @author Yana Stamcheva * @author Yana Stamcheva
*/ */
public class YahooAccountRegistrationWizard public class YahooAccountRegistrationWizard
extends AccountRegistrationWizard extends DesktopAccountRegistrationWizard
{ {
private final Logger logger private final Logger logger
= Logger.getLogger(YahooAccountRegistrationWizard.class); = Logger.getLogger(YahooAccountRegistrationWizard.class);

@ -24,7 +24,7 @@
* @author Maxime Catelin * @author Maxime Catelin
*/ */
public class ZeroconfAccountRegistrationWizard public class ZeroconfAccountRegistrationWizard
extends AccountRegistrationWizard extends DesktopAccountRegistrationWizard
{ {
private Logger logger private Logger logger
= Logger.getLogger(ZeroconfAccountRegistrationWizard.class); = Logger.getLogger(ZeroconfAccountRegistrationWizard.class);

@ -6,7 +6,6 @@
*/ */
package net.java.sip.communicator.service.gui; package net.java.sip.communicator.service.gui;
import java.awt.*;
import java.util.*; import java.util.*;
import net.java.sip.communicator.service.gui.internal.*; import net.java.sip.communicator.service.gui.internal.*;
@ -197,13 +196,6 @@ public String getForgotPasswordLink()
return null; return null;
} }
/**
* Returns the preferred dimensions of this wizard.
*
* @return the preferred dimensions of this wizard.
*/
public abstract Dimension getSize();
/** /**
* Returns a simple account registration form that would be the first form * 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 * shown to the user. Only if the user needs more settings she'll choose

@ -0,0 +1,39 @@
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.service.gui;
import java.awt.*;
/**
* The <tt>DesktopAccountRegistrationWizard</tt> extends the
* <tt>AccountRegistrationWizard</tt> to provide a desktop specific account
* registration. It is meant to provide a wizard which will guide the user
* through a protocol account registration. Each
* <tt>AccountRegistrationWizard</tt> should provide a set of
* <tt>WizardPage</tt>s, an icon, the name and the description of the
* corresponding protocol.
* <p>
* Note that the <tt>AccountRegistrationWizard</tt> 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.
* <p>
* It depends on the wizard implementation in the UI for whether or not a
* summary will be shown to the user before "Finish".
*
* @author Yana Stamcheva
*/
public abstract class DesktopAccountRegistrationWizard
extends AccountRegistrationWizard
{
/**
* Returns the preferred dimensions of this wizard.
*
* @return the preferred dimensions of this wizard.
*/
public abstract Dimension getSize();
}

@ -0,0 +1,29 @@
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.service.gui;
/**
* The <tt>ExtendedDesktopAccountRegWizard</tt> allows to specify if a sign up
* form is supported for a desktop specific account registration.
*
* @author Yana Stamcheva
*/
public abstract class ExtendedDesktopAccountRegWizard
extends DesktopAccountRegistrationWizard
{
/**
* Indicates if a sign up form is supported by this wizard.
*
* @return <tt>true</tt> if a sign up form is supported by this wizard,
* <tt>false</tt> - otherwise
*/
public abstract boolean isSignupSupported();
/**
* Sets the create account view of this registration wizard.
*/
public abstract void setCreateAccountView();
}
Loading…
Cancel
Save