Package com.inmethod.grid.examples.contact

Examples of com.inmethod.grid.examples.contact.Contact


  private String selectedItemsAsString(AbstractGrid grid) {
    StringBuilder res = new StringBuilder();
    Collection<IModel> selected = grid.getSelectedItems();
    for (IModel model : selected) {
      Contact contact = (Contact) model.getObject();
      if (res.length() > 0) {
        res.append(", ");
      }
      res.append(contact.getFirstName());
      res.append(" ");
      res.append(contact.getLastName());
    }
    return res.toString();
  }
View Full Code Here


  {
    StringBuilder res = new StringBuilder();
    Collection<IModel<Contact>> selected = grid.getSelectedItems();
    for (IModel<Contact> model : selected)
    {
      Contact contact = model.getObject();
      if (res.length() > 0)
      {
        res.append(", ");
      }
      res.append(contact.getFirstName());
      res.append(" ");
      res.append(contact.getLastName());
    }
    return res.toString();
  }
View Full Code Here

TOP

Related Classes of com.inmethod.grid.examples.contact.Contact

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.