// Path: src/java/com/idega/block/mailinglist/data/Account.java
// public interface Account extends com.idega.data.IDOLegacyEntity
// {
//  public java.lang.String getCreationDate();
//  public java.lang.String getEmail();
//  public java.lang.String getPOP3Host();
//  public java.lang.String getPOP3LoginName();
//  public java.lang.String getPOP3Password();
//  public int getPOP3Port();
//  public java.lang.String getReplyEmail();
//  public java.lang.String getSMTPHost();
//  public java.lang.String getSMTPLoginName();
//  public java.lang.String getSMTPPassword();
//  public int getSMTPPort();
//  public void setCreationDate(java.sql.Timestamp p0);
//  public void setEmail(java.lang.String p0);
//  public void setPOP3Host(java.lang.String p0);
//  public void setPOP3LoginName(java.lang.String p0);
//  public void setPOP3Password(java.lang.String p0);
//  public void setPOP3Port(int p0);
//  public void setReplyEmail(java.lang.String p0);
//  public void setSMTPHost(java.lang.String p0);
//  public void setSMTPLoginName(java.lang.String p0);
//  public void setSMTPPassword(java.lang.String p0);
//  public void setSMTPPort(int p0);
// }


import com.idega.presentation.Block;
import com.idega.presentation.IWContext;
import com.idega.presentation.Table;
import com.idega.presentation.ui.TextInput;
import com.idega.presentation.ui.PasswordInput;
import com.idega.presentation.ui.SubmitButton;
import com.idega.block.mailinglist.data.Account;
    pop3HostInput = new TextInput(pop3HostInputName);
    pop3PortInput = new TextInput(pop3PortInputName);
    pop3LoginInput = new TextInput(pop3LoginInputName);
    pop3PasswordInput = new PasswordInput(pop3PasswordInputName);
    pop3ConfirmPasswordInput = new PasswordInput(pop3ConfirmPasswordInputName);

    settingsTable.mergeCells(2,2,4,2);
    settingsTable.mergeCells(2,3,4,3);
    settingsTable.mergeCells(2,4,4,4);
    settingsTable.mergeCells(2,10,4,10);

    settingsTable.add(nameInput,2,2);
    settingsTable.add(emailInput,2,3);
    settingsTable.add(replyEmailInput,2,4);

    SubmitButton OKButton = new SubmitButton(OKButtonName, "OK");

    settingsTable.add(smtpHostInput,2,5);
    settingsTable.add(smtpPortInput,2,6);
    settingsTable.add(smtpLoginInput,2,7);
    settingsTable.add(smtpPasswordInput,2,8);
    settingsTable.add(smtpConfirmPasswordInput,2,9);
    settingsTable.add(pop3HostInput,4,5);
    settingsTable.add(pop3PortInput,4,6);
    settingsTable.add(pop3LoginInput,4,7);
    settingsTable.add(pop3PasswordInput,4,8);
    settingsTable.add(pop3ConfirmPasswordInput,4,9);
    settingsTable.add(OKButton,2,10);
  }

// Path: src/java/com/idega/block/mailinglist/data/Account.java
// public interface Account extends com.idega.data.IDOLegacyEntity
// {
//  public java.lang.String getCreationDate();
//  public java.lang.String getEmail();
//  public java.lang.String getPOP3Host();
//  public java.lang.String getPOP3LoginName();
//  public java.lang.String getPOP3Password();
//  public int getPOP3Port();
//  public java.lang.String getReplyEmail();
//  public java.lang.String getSMTPHost();
//  public java.lang.String getSMTPLoginName();
//  public java.lang.String getSMTPPassword();
//  public int getSMTPPort();
//  public void setCreationDate(java.sql.Timestamp p0);
//  public void setEmail(java.lang.String p0);
//  public void setPOP3Host(java.lang.String p0);
//  public void setPOP3LoginName(java.lang.String p0);
//  public void setPOP3Password(java.lang.String p0);
//  public void setPOP3Port(int p0);
//  public void setReplyEmail(java.lang.String p0);
//  public void setSMTPHost(java.lang.String p0);
//  public void setSMTPLoginName(java.lang.String p0);
//  public void setSMTPPassword(java.lang.String p0);
//  public void setSMTPPort(int p0);
// }


// Path: src/java/com/idega/block/mailinglist/presentation/AccountSettingsTable.java
import com.idega.presentation.Block;
import com.idega.presentation.IWContext;
import com.idega.presentation.Table;
import com.idega.presentation.ui.TextInput;
import com.idega.presentation.ui.PasswordInput;
import com.idega.presentation.ui.SubmitButton;
import com.idega.block.mailinglist.data.Account;

    pop3HostInput = new TextInput(pop3HostInputName);
    pop3PortInput = new TextInput(pop3PortInputName);
    pop3LoginInput = new TextInput(pop3LoginInputName);
    pop3PasswordInput = new PasswordInput(pop3PasswordInputName);
    pop3ConfirmPasswordInput = new PasswordInput(pop3ConfirmPasswordInputName);

    settingsTable.mergeCells(2,2,4,2);
    settingsTable.mergeCells(2,3,4,3);
    settingsTable.mergeCells(2,4,4,4);
    settingsTable.mergeCells(2,10,4,10);

    settingsTable.add(nameInput,2,2);
    settingsTable.add(emailInput,2,3);
    settingsTable.add(replyEmailInput,2,4);

    SubmitButton OKButton = new SubmitButton(OKButtonName, "OK");

    settingsTable.add(smtpHostInput,2,5);
    settingsTable.add(smtpPortInput,2,6);
    settingsTable.add(smtpLoginInput,2,7);
    settingsTable.add(smtpPasswordInput,2,8);
    settingsTable.add(smtpConfirmPasswordInput,2,9);
    settingsTable.add(pop3HostInput,4,5);
    settingsTable.add(pop3PortInput,4,6);
    settingsTable.add(pop3LoginInput,4,7);
    settingsTable.add(pop3PasswordInput,4,8);
    settingsTable.add(pop3ConfirmPasswordInput,4,9);
    settingsTable.add(OKButton,2,10);
  }

  protected void setAccount(Account account){