aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/plugin/zeroconfaccregwizz
diff options
context:
space:
mode:
authorYana Stamcheva <yana@jitsi.org>2011-06-07 09:04:06 +0000
committerYana Stamcheva <yana@jitsi.org>2011-06-07 09:04:06 +0000
commitff20df76ebdf84b8f0f93e16674ed3c069edc5f6 (patch)
treee51dea7f4217e2f8bb415ba5c53695aeefe7fccd /src/net/java/sip/communicator/plugin/zeroconfaccregwizz
parent87b95d7fb381d336e08b67e06d87efb8aeb15e37 (diff)
downloadjitsi-ff20df76ebdf84b8f0f93e16674ed3c069edc5f6.zip
jitsi-ff20df76ebdf84b8f0f93e16674ed3c069edc5f6.tar.gz
jitsi-ff20df76ebdf84b8f0f93e16674ed3c069edc5f6.tar.bz2
Pre-selects the protocol provider corresponding to the default protocol in the add contact dialog.
Diffstat (limited to 'src/net/java/sip/communicator/plugin/zeroconfaccregwizz')
-rw-r--r--src/net/java/sip/communicator/plugin/zeroconfaccregwizz/ZeroconfAccountRegistrationWizard.java77
1 files changed, 6 insertions, 71 deletions
diff --git a/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/ZeroconfAccountRegistrationWizard.java b/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/ZeroconfAccountRegistrationWizard.java
index 947f750..ae08991 100644
--- a/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/ZeroconfAccountRegistrationWizard.java
+++ b/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/ZeroconfAccountRegistrationWizard.java
@@ -24,7 +24,7 @@ import net.java.sip.communicator.util.*;
* @author Maxime Catelin
*/
public class ZeroconfAccountRegistrationWizard
- implements AccountRegistrationWizard
+ extends AccountRegistrationWizard
{
private Logger logger
= Logger.getLogger(ZeroconfAccountRegistrationWizard.class);
@@ -41,12 +41,8 @@ public class ZeroconfAccountRegistrationWizard
private ZeroconfAccountRegistration registration
= new ZeroconfAccountRegistration();
- private final WizardContainer wizardContainer;
-
private ProtocolProviderService protocolProvider;
- private boolean isModification;
-
/**
* Creates an instance of <tt>ZeroconfAccountRegistrationWizard</tt>.
* @param wizardContainer the wizard container, where this wizard
@@ -54,9 +50,9 @@ public class ZeroconfAccountRegistrationWizard
*/
public ZeroconfAccountRegistrationWizard(WizardContainer wizardContainer)
{
- this.wizardContainer = wizardContainer;
+ setWizardContainer(wizardContainer);
- this.wizardContainer
+ wizardContainer
.setFinishButtonText(Resources.getString("service.gui.SIGN_IN"));
}
@@ -206,11 +202,11 @@ public class ZeroconfAccountRegistrationWizard
accountProperties.put("rememberContacts",
new Boolean(registration.isRememberContacts()).toString());
- if (isModification)
+ if (isModification())
{
providerFactory.uninstallAccount(protocolProvider.getAccountID());
this.protocolProvider = null;
- this.isModification = false;
+ setModification(false);
}
try
@@ -254,7 +250,7 @@ public class ZeroconfAccountRegistrationWizard
*/
public void loadAccount(ProtocolProviderService protocolProvider)
{
- this.isModification = true;
+ setModification(true);
this.protocolProvider = protocolProvider;
@@ -264,28 +260,6 @@ public class ZeroconfAccountRegistrationWizard
}
/**
- * Indicates if this wizard is opened for modification or for creating a
- * new account.
- *
- * @return <code>true</code> if this wizard is opened for modification and
- * <code>false</code> otherwise.
- */
- public boolean isModification()
- {
- return isModification;
- }
-
- /**
- * Returns the wizard container, where all pages are added.
- *
- * @return the wizard container, where all pages are added
- */
- public WizardContainer getWizardContainer()
- {
- return wizardContainer;
- }
-
- /**
* Returns the registration object, which will store all the data through
* the wizard.
*
@@ -325,18 +299,6 @@ public class ZeroconfAccountRegistrationWizard
}
/**
- * Sets the modification property to indicate if this wizard is opened for
- * a modification.
- *
- * @param isModification indicates if this wizard is opened for modification
- * or for creating a new account.
- */
- public void setModification(boolean isModification)
- {
- this.isModification = isModification;
- }
-
- /**
* Returns the password label for the simplified account registration form.
* @return the password label for the simplified account registration form.
*/
@@ -383,26 +345,6 @@ public class ZeroconfAccountRegistrationWizard
}
/**
- * Nothing to do here in the case of Bonjour.
- */
- public void webSignup()
- {
- throw new UnsupportedOperationException(
- "The web sign up is not supported by the Zeroconf wizard.");
- }
-
- /**
- * Returns <code>true</code> if the web sign up is supported by the current
- * implementation, <code>false</code> - otherwise.
- * @return <code>true</code> if the web sign up is supported by the current
- * implementation, <code>false</code> - otherwise
- */
- public boolean isWebSignupSupported()
- {
- return false;
- }
-
- /**
* 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
* to open the advanced wizard, consisted by all pages.
@@ -421,11 +363,4 @@ public class ZeroconfAccountRegistrationWizard
firstWizardPage = new FirstWizardPage(this);
return firstWizardPage.getSimpleForm();
}
-
- /**
- * Indicates that the account corresponding to the given
- * <tt>protocolProvider</tt> has been removed.
- * @param protocolProvider the protocol provider that has been removed
- */
- public void accountRemoved(ProtocolProviderService protocolProvider) {}
}