aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/plugin/sipaccregwizz/FirstWizardPage.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/sip/communicator/plugin/sipaccregwizz/FirstWizardPage.java')
-rw-r--r--src/net/java/sip/communicator/plugin/sipaccregwizz/FirstWizardPage.java77
1 files changed, 30 insertions, 47 deletions
diff --git a/src/net/java/sip/communicator/plugin/sipaccregwizz/FirstWizardPage.java b/src/net/java/sip/communicator/plugin/sipaccregwizz/FirstWizardPage.java
index 3835cf7..b69a003 100644
--- a/src/net/java/sip/communicator/plugin/sipaccregwizz/FirstWizardPage.java
+++ b/src/net/java/sip/communicator/plugin/sipaccregwizz/FirstWizardPage.java
@@ -532,56 +532,54 @@ public class FirstWizardPage
{
AccountID accountID = protocolProvider.getAccountID();
String password =
- (String) accountID.getAccountProperties().get(
- ProtocolProviderFactory.PASSWORD);
+ accountID
+ .getAccountPropertyString(ProtocolProviderFactory.PASSWORD);
String serverAddress =
- (String) accountID.getAccountProperties().get(
- ProtocolProviderFactory.SERVER_ADDRESS);
+ accountID
+ .getAccountPropertyString(ProtocolProviderFactory.SERVER_ADDRESS);
String serverPort =
- (String) accountID.getAccountProperties().get(
- ProtocolProviderFactory.SERVER_PORT);
+ accountID
+ .getAccountPropertyString(ProtocolProviderFactory.SERVER_PORT);
String proxyAddress =
- (String) accountID.getAccountProperties().get(
- ProtocolProviderFactory.PROXY_ADDRESS);
+ accountID
+ .getAccountPropertyString(ProtocolProviderFactory.PROXY_ADDRESS);
String proxyPort =
- (String) accountID.getAccountProperties().get(
- ProtocolProviderFactory.PROXY_PORT);
+ accountID
+ .getAccountPropertyString(ProtocolProviderFactory.PROXY_PORT);
String preferredTransport =
- (String) accountID.getAccountProperties().get(
- ProtocolProviderFactory.PREFERRED_TRANSPORT);
+ accountID
+ .getAccountPropertyString(ProtocolProviderFactory.PREFERRED_TRANSPORT);
- boolean enablePresence = new Boolean(
- (String) accountID.getAccountProperties().get(
- ProtocolProviderFactory.IS_PRESENCE_ENABLED)).booleanValue();
+ boolean enablePresence =
+ accountID.getAccountPropertyBoolean(
+ ProtocolProviderFactory.IS_PRESENCE_ENABLED, false);
- boolean forceP2P = new Boolean(
- (String) accountID.getAccountProperties().get(
- ProtocolProviderFactory.FORCE_P2P_MODE)).booleanValue();
-
- boolean enabledDefaultEncryption = new Boolean(
- (String) accountID.getAccountProperties().get(
- ProtocolProviderFactory.DEFAULT_ENCRYPTION)).booleanValue();
+ boolean forceP2P =
+ accountID.getAccountPropertyBoolean(
+ ProtocolProviderFactory.FORCE_P2P_MODE, false);
+
+ boolean enabledDefaultEncryption =
+ accountID.getAccountPropertyBoolean(
+ ProtocolProviderFactory.DEFAULT_ENCRYPTION, false);
String pollingPeriod =
- (String) accountID.getAccountProperties().get(
- ProtocolProviderFactory.POLLING_PERIOD);
+ accountID
+ .getAccountPropertyString(ProtocolProviderFactory.POLLING_PERIOD);
String subscriptionPeriod =
- (String) accountID.getAccountProperties().get(
- ProtocolProviderFactory.SUBSCRIPTION_EXPIRATION);
+ accountID
+ .getAccountPropertyString(ProtocolProviderFactory.SUBSCRIPTION_EXPIRATION);
- String keepAliveMethod
- = (String) accountID.getAccountProperties()
- .get("KEEP_ALIVE_METHOD");
+ String keepAliveMethod =
+ accountID.getAccountPropertyString("KEEP_ALIVE_METHOD");
- String keepAliveInterval
- = (String) accountID.getAccountProperties()
- .get("KEEP_ALIVE_INTERVAL");
+ String keepAliveInterval =
+ accountID.getAccountPropertyString("KEEP_ALIVE_INTERVAL");
uinField.setEnabled(false);
this.uinField.setText((serverAddress == null) ? accountID.getUserID()
@@ -655,21 +653,6 @@ public class FirstWizardPage
}
}
- /**
- * Disables Next Button if Port field value is incorrect
- */
- private void setNextButtonAccordingToPort()
- {
- try
- {
- wizard.getWizardContainer().setNextFinishButtonEnabled(true);
- }
- catch (NumberFormatException ex)
- {
- wizard.getWizardContainer().setNextFinishButtonEnabled(false);
- }
- }
-
public void itemStateChanged(ItemEvent e)
{
if (e.getStateChange() == ItemEvent.SELECTED