Package org.eclipsecon.gwt.chattr.client

Source Code of org.eclipsecon.gwt.chattr.client.Chattr

package org.eclipsecon.gwt.chattr.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;

/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class Chattr implements EntryPoint {

  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
    final RootPanel rootPanel = RootPanel.get();
    final LoginPanel loginPanel = new LoginPanel(new LoginPanel.LoginHandler() {
      public void onFailure() {
      }

      public void onSuccess(User user) {
        rootPanel.clear();
        rootPanel.add(new ContactList(new ConversationManager(new Model(user))));
      }
    });
    rootPanel.add(loginPanel);
    loginPanel.setFocus(true);
  }
}
TOP

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

TOP
Copyright © 2018 www.massapi.com. 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.