Rev 2209 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package in.shop2020.hotspot.dashbaord.client;import org.enunes.gwt.mvp.client.EventBus;import in.shop2020.hotspot.dashbaord.client.event.SubmitLoginInfoEvent;import in.shop2020.hotspot.dashbaord.client.event.SubmitLoginInfoHandler;import com.google.gwt.core.client.EntryPoint;import com.google.gwt.core.client.GWT;import com.google.gwt.user.client.ui.RootLayoutPanel;/*** Entry point classes define <code>onModuleLoad()</code>.*/public class HotspotDashboard implements EntryPoint {/*** This is the entry point method.*/public void onModuleLoad() {final in.shop2020.hotspot.dashbaord.client.gin.Injector ginjector = GWT.create(in.shop2020.hotspot.dashbaord.client.gin.Injector.class);final MainPresenter mainPresenter = ginjector.getMainPresenter();mainPresenter.bind();RootLayoutPanel.get().add(mainPresenter.getDisplay().asWidget());logEvent(ginjector.getEventBus());}private void logEvent(EventBus eventBus) {eventBus.addHandler(SubmitLoginInfoEvent.getType(), new SubmitLoginInfoHandler() {@Overridepublic void onSubmitLoginInfo(SubmitLoginInfoEvent event) {GWT.log("Auth called with params "+ event.getUserName() + " and "+ event.getPassword());}});}}