Package com.cubusmail.common.model

Examples of com.cubusmail.common.model.GWTEmailAddress


  private GWTEmailAddress[] createAddresses() {
    int COUNT = 10;
    GWTEmailAddress[] addresses = new GWTEmailAddress[COUNT];

    for (int i = 0; i < COUNT; i++) {
      addresses[i] = new GWTEmailAddress();
      addresses[i].setName("Hans Meier" + i);
      addresses[i].setEmail("hans" + i + "@meier.de");
      addresses[i].setInternetAddress("Hans Meier" + i + " <hans" + i
          + "@meier.de>");
    }
View Full Code Here


  public static GWTEmailAddress[] convertAddress( Address[] addresses ) throws MessagingException {

    if ( addresses != null ) {
      GWTEmailAddress[] gwtAdresses = new GWTEmailAddress[addresses.length];
      for (int i = 0; i < addresses.length; i++) {
        GWTEmailAddress gwtAddress = new GWTEmailAddress();
        gwtAddress.setInternetAddress( MessageUtils.getMailAdressString( addresses[i],
            AddressStringType.COMPLETE ) );
        gwtAddress.setName( MessageUtils.getMailAdressString( addresses[i], AddressStringType.PERSONAL_ONLY ) );
        gwtAddress.setEmail( MessageUtils.getMailAdressString( addresses[i], AddressStringType.EMAIL ) );
        gwtAdresses[i] = gwtAddress;
      }

      return gwtAdresses;
    }
View Full Code Here

TOP

Related Classes of com.cubusmail.common.model.GWTEmailAddress

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.