aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/plugin/yahooaccregwizz/YahooAccountRegistrationWizard.java
diff options
context:
space:
mode:
authorLyubomir Marinov <lyubomir.marinov@jitsi.org>2013-05-23 18:50:35 +0300
committerLyubomir Marinov <lyubomir.marinov@jitsi.org>2013-05-23 18:50:35 +0300
commitb211c26d6c8f51a75d3b64b6092284c3847a3a8a (patch)
treea51b7d816a27f8db492cf9c44f998e2da8176635 /src/net/java/sip/communicator/plugin/yahooaccregwizz/YahooAccountRegistrationWizard.java
parent24e81b82808681c6b5741b14048ef58c4e665e37 (diff)
downloadjitsi-b211c26d6c8f51a75d3b64b6092284c3847a3a8a.zip
jitsi-b211c26d6c8f51a75d3b64b6092284c3847a3a8a.tar.gz
jitsi-b211c26d6c8f51a75d3b64b6092284c3847a3a8a.tar.bz2
Fixes warnings, removes trailing whitespace, adds @Override annotations.
Diffstat (limited to 'src/net/java/sip/communicator/plugin/yahooaccregwizz/YahooAccountRegistrationWizard.java')
-rw-r--r--src/net/java/sip/communicator/plugin/yahooaccregwizz/YahooAccountRegistrationWizard.java48
1 files changed, 32 insertions, 16 deletions
diff --git a/src/net/java/sip/communicator/plugin/yahooaccregwizz/YahooAccountRegistrationWizard.java b/src/net/java/sip/communicator/plugin/yahooaccregwizz/YahooAccountRegistrationWizard.java
index fb3482b..50b1cc8 100644
--- a/src/net/java/sip/communicator/plugin/yahooaccregwizz/YahooAccountRegistrationWizard.java
+++ b/src/net/java/sip/communicator/plugin/yahooaccregwizz/YahooAccountRegistrationWizard.java
@@ -1,6 +1,6 @@
/*
* 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.plugin.yahooaccregwizz;
@@ -18,7 +18,7 @@ import org.osgi.framework.*;
* The <tt>YahooAccountRegistrationWizard</tt> is an implementation of the
* <tt>AccountRegistrationWizard</tt> for the Yahoo protocol. It should allow
* the user to create and configure a new Yahoo account.
- *
+ *
* @author Yana Stamcheva
*/
public class YahooAccountRegistrationWizard
@@ -36,7 +36,7 @@ public class YahooAccountRegistrationWizard
/**
* Creates an instance of <tt>YahooAccountRegistrationWizard</tt>.
- *
+ *
* @param wizardContainer the wizard container, where this wizard is added
*/
public YahooAccountRegistrationWizard(WizardContainer wizardContainer)
@@ -50,9 +50,10 @@ public class YahooAccountRegistrationWizard
/**
* Implements the <code>AccountRegistrationWizard.getIcon</code> method.
* Returns the icon to be used for this wizard.
- *
+ *
* @return byte[]
*/
+ @Override
public byte[] getIcon()
{
return Resources.getImage(Resources.YAHOO_LOGO);
@@ -61,9 +62,10 @@ public class YahooAccountRegistrationWizard
/**
* Implements the <code>AccountRegistrationWizard.getPageImage</code>
* method. Returns the image used to decorate the wizard page
- *
+ *
* @return byte[] the image used to decorate the wizard page
*/
+ @Override
public byte[] getPageImage()
{
return Resources.getImage(Resources.PAGE_IMAGE);
@@ -72,9 +74,10 @@ public class YahooAccountRegistrationWizard
/**
* Implements the <code>AccountRegistrationWizard.getProtocolName</code>
* method. Returns the protocol name for this wizard.
- *
+ *
* @return String
*/
+ @Override
public String getProtocolName()
{
return Resources.getString("plugin.yahooaccregwizz.PROTOCOL_NAME");
@@ -84,9 +87,10 @@ public class YahooAccountRegistrationWizard
* Implements the <code>AccountRegistrationWizard.getProtocolDescription
* </code>
* method. Returns the description of the protocol for this wizard.
- *
+ *
* @return String
*/
+ @Override
public String getProtocolDescription()
{
return Resources
@@ -95,9 +99,10 @@ public class YahooAccountRegistrationWizard
/**
* Returns the set of pages contained in this wizard.
- *
+ *
* @return Iterator
*/
+ @Override
public Iterator<WizardPage> getPages()
{
java.util.List<WizardPage> pages = new ArrayList<WizardPage>();
@@ -110,12 +115,13 @@ public class YahooAccountRegistrationWizard
/**
* Returns the set of data that user has entered through this wizard.
- *
+ *
* @return Iterator
*/
+ @Override
public Iterator<Map.Entry<String, String>> getSummary()
{
- Hashtable<String, String> summaryTable
+ Hashtable<String, String> summaryTable
= new Hashtable<String, String>();
summaryTable.put(
@@ -136,6 +142,7 @@ public class YahooAccountRegistrationWizard
* new account
* @throws OperationFailedException if the operation didn't succeed
*/
+ @Override
public ProtocolProviderService signin()
throws OperationFailedException
{
@@ -155,6 +162,7 @@ public class YahooAccountRegistrationWizard
* new account
* @throws OperationFailedException if the operation didn't succeed
*/
+ @Override
public ProtocolProviderService signin(String userName, String password)
throws OperationFailedException
{
@@ -168,7 +176,7 @@ public class YahooAccountRegistrationWizard
/**
* Creates an account for the given user and password.
- *
+ *
* @param providerFactory the ProtocolProviderFactory which will create the
* account
* @param user the user identifier
@@ -179,7 +187,7 @@ public class YahooAccountRegistrationWizard
ProtocolProviderFactory providerFactory, String user, String passwd)
throws OperationFailedException
{
- Hashtable<String, String> accountProperties
+ Hashtable<String, String> accountProperties
= new Hashtable<String, String>();
accountProperties.put(ProtocolProviderFactory.ACCOUNT_ICON_PATH,
@@ -235,10 +243,11 @@ public class YahooAccountRegistrationWizard
/**
* Fills the UIN and Password fields in this panel with the data coming
* from the given protocolProvider.
- *
+ *
* @param protocolProvider The <tt>ProtocolProviderService</tt> to load
* the data from.
*/
+ @Override
public void loadAccount(ProtocolProviderService protocolProvider)
{
setModification(true);
@@ -253,7 +262,7 @@ public class YahooAccountRegistrationWizard
/**
* Returns the registration object, which will store all the data through
* the wizard.
- *
+ *
* @return the registration object, which will store all the data through
* the wizard
*/
@@ -266,15 +275,17 @@ public class YahooAccountRegistrationWizard
* Returns the size of this wizard.
* @return the size of this wizard
*/
+ @Override
public Dimension getSize()
{
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.
*/
+ @Override
public Object getFirstPageIdentifier()
{
return firstWizardPage.getIdentifier();
@@ -284,6 +295,7 @@ public class YahooAccountRegistrationWizard
* Returns the identifier of the page to show last in the wizard.
* @return the identifier of the page to show last in the wizard.
*/
+ @Override
public Object getLastPageIdentifier()
{
return firstWizardPage.getIdentifier();
@@ -295,6 +307,7 @@ public class YahooAccountRegistrationWizard
* @return an example string, which should indicate to the user how the
* user name should look like.
*/
+ @Override
public String getUserNameExample()
{
return FirstWizardPage.USER_NAME_EXAMPLE;
@@ -306,6 +319,7 @@ public class YahooAccountRegistrationWizard
* @throws UnsupportedOperationException if the web sign up operation is
* not supported by the current implementation.
*/
+ @Override
public void webSignup()
{
YahooAccRegWizzActivator.getBrowserLauncher()
@@ -318,6 +332,7 @@ public class YahooAccountRegistrationWizard
* @return <code>true</code> if the web sign up is supported by the current
* implementation, <code>false</code> - otherwise
*/
+ @Override
public boolean isWebSignupSupported()
{
return true;
@@ -328,10 +343,11 @@ public class YahooAccountRegistrationWizard
* shown to the user. Only if the user needs more settings she'll choose
* to open the advanced wizard, consisted by all pages.
*
- * @param isCreateAccount indicates if the simple form should be opened as
+ * @param isCreateAccount indicates if the simple form should be opened as
* a create account form or as a login form
* @return a simple account registration form
*/
+ @Override
public Object getSimpleForm(boolean isCreateAccount)
{
firstWizardPage = new FirstWizardPage(this);