Package uk.ac.osswatch.simal.model

Examples of uk.ac.osswatch.simal.model.IInternetAddress


       
        if (person != null) {
          Iterator<IInternetAddress> emails = ((IPerson) model.getObject())
              .getEmail().iterator();
          if (emails.hasNext()) {
            IInternetAddress email = emails.next();
            label = email.getObfuscatedAddress();
            if (label.startsWith("mailto:")) {
              label = label.substring(7);
            }
          }
        }
View Full Code Here


  /**
   * @see ListView#populateItem(ListItem)
   */
  protected void populateItem(ListItem<IInternetAddress> listItem) {
    final IInternetAddress addr = (IInternetAddress) listItem.getModelObject();
    ExternalLink externalLink = new ExternalLink("linkURL", addr.getObfuscatedAddress());
    String href = addr.getObfuscatedAddress();
    if (href.startsWith("mailto")) {
      href = href.substring(7);
    }
    externalLink.add(new Label("linkText", href));
    listItem.add(externalLink);
View Full Code Here

TOP

Related Classes of uk.ac.osswatch.simal.model.IInternetAddress

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.