From 24a42456db695e6b2dd00a4dcda592f709eba398 Mon Sep 17 00:00:00 2001 From: Yana Stamcheva Date: Wed, 14 Nov 2007 11:15:47 +0000 Subject: Added getFirstPageIdentifier and getLastPageIdentifier to the AccountRegistrationWizard interface. --- .../AimAccountRegistrationWizard.java | 18 +++++++++++++++++ .../GibberishAccountRegistrationWizard.java | 19 ++++++++++++++++++ .../IcqAccountRegistrationWizard.java | 19 ++++++++++++++++++ .../IrcAccountRegistrationWizard.java | 18 +++++++++++++++++ .../JabberAccountRegistrationWizard.java | 19 ++++++++++++++++++ .../MsnAccountRegistrationWizard.java | 19 ++++++++++++++++++ .../RssAccountRegistrationWizard.java | 19 ++++++++++++++++++ .../SIPAccountRegistrationWizard.java | 23 ++++++++++++++++++++-- .../SSHAccountRegistrationWizard.java | 19 ++++++++++++++++++ .../YahooAccountRegistrationWizard.java | 19 ++++++++++++++++++ .../ZeroconfAccountRegistrationWizard.java | 19 ++++++++++++++++++ .../service/gui/AccountRegistrationWizard.java | 22 +++++++++++++++++++-- 12 files changed, 229 insertions(+), 4 deletions(-) (limited to 'src/net/java') diff --git a/src/net/java/sip/communicator/plugin/aimaccregwizz/AimAccountRegistrationWizard.java b/src/net/java/sip/communicator/plugin/aimaccregwizz/AimAccountRegistrationWizard.java index cd333c8..29b14e6 100644 --- a/src/net/java/sip/communicator/plugin/aimaccregwizz/AimAccountRegistrationWizard.java +++ b/src/net/java/sip/communicator/plugin/aimaccregwizz/AimAccountRegistrationWizard.java @@ -279,4 +279,22 @@ public class AimAccountRegistrationWizard { return new Dimension(600, 500); } + + /** + * Returns the identifier of the page to show first in the wizard. + * @return the identifier of the page to show first in the wizard. + */ + public Object getFirstPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + + /** + * Returns the identifier of the page to show last in the wizard. + * @return the identifier of the page to show last in the wizard. + */ + public Object getLastPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } } diff --git a/src/net/java/sip/communicator/plugin/gibberishaccregwizz/GibberishAccountRegistrationWizard.java b/src/net/java/sip/communicator/plugin/gibberishaccregwizz/GibberishAccountRegistrationWizard.java index d33dfc1..53e3f9e 100644 --- a/src/net/java/sip/communicator/plugin/gibberishaccregwizz/GibberishAccountRegistrationWizard.java +++ b/src/net/java/sip/communicator/plugin/gibberishaccregwizz/GibberishAccountRegistrationWizard.java @@ -254,4 +254,23 @@ public class GibberishAccountRegistrationWizard { return new Dimension(600, 500); } + + /** + * Returns the identifier of the page to show first in the wizard. + * @return the identifier of the page to show first in the wizard. + */ + public Object getFirstPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + + /** + * Returns the identifier of the page to show last in the wizard. + * @return the identifier of the page to show last in the wizard. + */ + public Object getLastPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + } diff --git a/src/net/java/sip/communicator/plugin/icqaccregwizz/IcqAccountRegistrationWizard.java b/src/net/java/sip/communicator/plugin/icqaccregwizz/IcqAccountRegistrationWizard.java index c10f5f1..b89101a 100644 --- a/src/net/java/sip/communicator/plugin/icqaccregwizz/IcqAccountRegistrationWizard.java +++ b/src/net/java/sip/communicator/plugin/icqaccregwizz/IcqAccountRegistrationWizard.java @@ -288,4 +288,23 @@ public class IcqAccountRegistrationWizard { return new Dimension(600, 500); } + + /** + * Returns the identifier of the page to show first in the wizard. + * @return the identifier of the page to show first in the wizard. + */ + public Object getFirstPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + + /** + * Returns the identifier of the page to show last in the wizard. + * @return the identifier of the page to show last in the wizard. + */ + public Object getLastPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + } diff --git a/src/net/java/sip/communicator/plugin/ircaccregwizz/IrcAccountRegistrationWizard.java b/src/net/java/sip/communicator/plugin/ircaccregwizz/IrcAccountRegistrationWizard.java index ed1d086..6cfbeef 100644 --- a/src/net/java/sip/communicator/plugin/ircaccregwizz/IrcAccountRegistrationWizard.java +++ b/src/net/java/sip/communicator/plugin/ircaccregwizz/IrcAccountRegistrationWizard.java @@ -281,4 +281,22 @@ public class IrcAccountRegistrationWizard { return new Dimension(600, 500); } + + /** + * Returns the identifier of the page to show first in the wizard. + * @return the identifier of the page to show first in the wizard. + */ + public Object getFirstPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + + /** + * Returns the identifier of the page to show last in the wizard. + * @return the identifier of the page to show last in the wizard. + */ + public Object getLastPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } } diff --git a/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountRegistrationWizard.java b/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountRegistrationWizard.java index d35065b..647c2f4 100644 --- a/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountRegistrationWizard.java +++ b/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountRegistrationWizard.java @@ -279,4 +279,23 @@ public class JabberAccountRegistrationWizard { return new Dimension(300, 480); } + + /** + * Returns the identifier of the page to show first in the wizard. + * @return the identifier of the page to show first in the wizard. + */ + public Object getFirstPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + + /** + * Returns the identifier of the page to show last in the wizard. + * @return the identifier of the page to show last in the wizard. + */ + public Object getLastPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + } diff --git a/src/net/java/sip/communicator/plugin/msnaccregwizz/MsnAccountRegistrationWizard.java b/src/net/java/sip/communicator/plugin/msnaccregwizz/MsnAccountRegistrationWizard.java index 81a8026..56db0ff 100644 --- a/src/net/java/sip/communicator/plugin/msnaccregwizz/MsnAccountRegistrationWizard.java +++ b/src/net/java/sip/communicator/plugin/msnaccregwizz/MsnAccountRegistrationWizard.java @@ -256,4 +256,23 @@ public class MsnAccountRegistrationWizard { return new Dimension(600, 500); } + + /** + * Returns the identifier of the page to show first in the wizard. + * @return the identifier of the page to show first in the wizard. + */ + public Object getFirstPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + + /** + * Returns the identifier of the page to show last in the wizard. + * @return the identifier of the page to show last in the wizard. + */ + public Object getLastPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + } diff --git a/src/net/java/sip/communicator/plugin/rssaccregwizz/RssAccountRegistrationWizard.java b/src/net/java/sip/communicator/plugin/rssaccregwizz/RssAccountRegistrationWizard.java index adaed24..929e74e 100644 --- a/src/net/java/sip/communicator/plugin/rssaccregwizz/RssAccountRegistrationWizard.java +++ b/src/net/java/sip/communicator/plugin/rssaccregwizz/RssAccountRegistrationWizard.java @@ -205,4 +205,23 @@ public class RssAccountRegistrationWizard { return new Dimension(600, 500); } + + /** + * Returns the identifier of the page to show first in the wizard. + * @return the identifier of the page to show first in the wizard. + */ + public Object getFirstPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + + /** + * Returns the identifier of the page to show last in the wizard. + * @return the identifier of the page to show last in the wizard. + */ + public Object getLastPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + } diff --git a/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationWizard.java b/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationWizard.java index 538cc4e..9e7f8d3 100644 --- a/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationWizard.java +++ b/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationWizard.java @@ -16,7 +16,7 @@ import net.java.sip.communicator.util.*; import org.osgi.framework.*; /** - * The SIPAccountRegistrationWizard is an implementation of the + * The IPPIAccountRegistrationWizard is an implementation of the * AccountRegistrationWizard for the SIP protocol. It should allow * the user to create and configure a new SIP account. * @@ -43,7 +43,7 @@ public class SIPAccountRegistrationWizard = Logger.getLogger(SIPAccountRegistrationWizard.class); /** - * Creates an instance of SIPAccountRegistrationWizard. + * Creates an instance of IPPIAccountRegistrationWizard. * @param wizardContainer the wizard container, where this wizard * is added */ @@ -316,4 +316,23 @@ public class SIPAccountRegistrationWizard { return new Dimension(600, 500); } + + /** + * Returns the identifier of the page to show first in the wizard. + * @return the identifier of the page to show first in the wizard. + */ + public Object getFirstPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + + /** + * Returns the identifier of the page to show last in the wizard. + * @return the identifier of the page to show last in the wizard. + */ + public Object getLastPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + } diff --git a/src/net/java/sip/communicator/plugin/sshaccregwizz/SSHAccountRegistrationWizard.java b/src/net/java/sip/communicator/plugin/sshaccregwizz/SSHAccountRegistrationWizard.java index aab1eca..2111d50 100644 --- a/src/net/java/sip/communicator/plugin/sshaccregwizz/SSHAccountRegistrationWizard.java +++ b/src/net/java/sip/communicator/plugin/sshaccregwizz/SSHAccountRegistrationWizard.java @@ -275,4 +275,23 @@ public class SSHAccountRegistrationWizard { return new Dimension(600, 500); } + + /** + * Returns the identifier of the page to show first in the wizard. + * @return the identifier of the page to show first in the wizard. + */ + public Object getFirstPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + + /** + * Returns the identifier of the page to show last in the wizard. + * @return the identifier of the page to show last in the wizard. + */ + public Object getLastPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + } diff --git a/src/net/java/sip/communicator/plugin/yahooaccregwizz/YahooAccountRegistrationWizard.java b/src/net/java/sip/communicator/plugin/yahooaccregwizz/YahooAccountRegistrationWizard.java index 34b7259..6864110 100644 --- a/src/net/java/sip/communicator/plugin/yahooaccregwizz/YahooAccountRegistrationWizard.java +++ b/src/net/java/sip/communicator/plugin/yahooaccregwizz/YahooAccountRegistrationWizard.java @@ -257,4 +257,23 @@ public class YahooAccountRegistrationWizard { return new Dimension(600, 500); } + + /** + * Returns the identifier of the page to show first in the wizard. + * @return the identifier of the page to show first in the wizard. + */ + public Object getFirstPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + + /** + * Returns the identifier of the page to show last in the wizard. + * @return the identifier of the page to show last in the wizard. + */ + public Object getLastPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + } diff --git a/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/ZeroconfAccountRegistrationWizard.java b/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/ZeroconfAccountRegistrationWizard.java index d7dbb0f..060b5ae 100644 --- a/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/ZeroconfAccountRegistrationWizard.java +++ b/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/ZeroconfAccountRegistrationWizard.java @@ -261,4 +261,23 @@ public class ZeroconfAccountRegistrationWizard { return new Dimension(600, 500); } + + /** + * Returns the identifier of the page to show first in the wizard. + * @return the identifier of the page to show first in the wizard. + */ + public Object getFirstPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + + /** + * Returns the identifier of the page to show last in the wizard. + * @return the identifier of the page to show last in the wizard. + */ + public Object getLastPageIdentifier() + { + return firstWizardPage.getIdentifier(); + } + } diff --git a/src/net/java/sip/communicator/service/gui/AccountRegistrationWizard.java b/src/net/java/sip/communicator/service/gui/AccountRegistrationWizard.java index 4f9dbc3..8c39e60 100644 --- a/src/net/java/sip/communicator/service/gui/AccountRegistrationWizard.java +++ b/src/net/java/sip/communicator/service/gui/AccountRegistrationWizard.java @@ -20,7 +20,7 @@ import net.java.sip.communicator.service.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 + * 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 @@ -79,7 +79,25 @@ public interface AccountRegistrationWizard { * wizard. */ public Iterator getPages(); - + + /** + * Returns the identifier of the first account registration wizard page. + * This method is meant to be used by the wizard container to determine, + * which is the first page to show to the user. + * + * @return the identifier of the first account registration wizard page + */ + public Object getFirstPageIdentifier(); + + /** + * Returns the identifier of the last account registration wizard page. This + * method is meant to be used by the wizard container to determine which is + * the page to show before the summary page (of course if there's a summary). + * + * @return the identifier of the last account registration wizard page + */ + public Object getLastPageIdentifier(); + /** * Returns a set of key-value pairs that will represent the summary for * this wizard. -- cgit v1.1