setTitle(new LabelField(sdh.getLanguage("configure-sync4j-bb")));
Log.debug("Username:" + c.userName);
Log.debug("Sync Calendar: " + c.syncCalendar);
userNameField = new BasicEditField
(sdh.getLanguage("user") + " " , c.userName );
passwordField = new PasswordEditField
(sdh.getLanguage("password") + " " , c.password );
homePageField = new BasicEditField
(sdh.getLanguage("homepage") + " \n" , c.syncUrl );
listeningPortField = new BasicEditField
(sdh.getLanguage("alerting-port") + " " ,
c.listeningPort);
mailIDField = new BasicEditField
(sdh.getLanguage("email-id") + " " , c.mailAddress);
mailSourceUriField = new BasicEditField
(sdh.getLanguage("source-uri-mail") + " " ,
c.mailSourceUri);
contactSourceUriField = new BasicEditField
(sdh.getLanguage("source-uri-contact") + " " ,
c.contactSourceUri );
calendarSourceUriField = new BasicEditField
(sdh.getLanguage("source-uri-calendar") + " " ,
c.calendarSourceUri );
syncContactField = new CheckboxField
(sdh.getLanguage("enable-sync-contact") ,
c.syncContact );
syncCalendarField = new CheckboxField
(sdh.getLanguage("enable-sync-calendar") ,
c.syncCalendar );
syncMailField = new CheckboxField
(sdh.getLanguage("enable-sync-mail") ,
c.syncMail);
pollingField = new CheckboxField(
sdh.getLanguage("enable-polling"),
c.enablePolling);
smsField = new CheckboxField(
sdh.getLanguage("enable-sms-server-alerted-sync"),
c.enableSmsSync);
gatewayApnField = new BasicEditField
(sdh.getLanguage("gateway-apn") + " " ,
c.gatewayApn );
gatewayIpField = new BasicEditField
(sdh.getLanguage("gateway-ip") + " " ,
c.gatewayIp );
gatewayPortField = new BasicEditField
(sdh.getLanguage("gateway-port") + " " ,
c.gatewayPort ,
6 ,
EditField.FILTER_INTEGER );