Package org.eclipsecon.gwt.chattr.client

Examples of org.eclipsecon.gwt.chattr.client.User


   */
  private final Map userToUserInfoMap = new HashMap();

  public ChatServiceImpl() {
    // Default to George P. Burdell
    User user = new User("George P. Burdell", "Go Jackets!");
    UserInfo userInfo = new SuperUserInfo(user);
    userToUserInfoMap.put(user, userInfo);
  }
View Full Code Here


  private void notifyNewUserOfExistingUsers(UserInfo newUserInfo) {
    Iterator iter = userToUserInfoMap.keySet().iterator();

    while (iter.hasNext()) {
      User user = (User) iter.next();

      newUserInfo.addEvent(new UserAddEvent(user));
    }
  }
View Full Code Here

   * @param iterRecipients iterator over set of recipients
   * @param event the event that we want to propagate
   */
  private void propagateEvent(Iterator iterRecipients, ChatEvent event) {
    while (iterRecipients.hasNext()) {
      User recipient = (User) iterRecipients.next();

      UserInfo userInfo = findUserInfoForUser(recipient);
      if (userInfo != null) {
        userInfo.addEvent(event);
      }
View Full Code Here

TOP

Related Classes of org.eclipsecon.gwt.chattr.client.User

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.