litesoft
@ 540
litesoft / trunk / GWT_Sandbox / MultiModule / groupFront / src / org / litesoft / sandbox / multimodule / groupfront / client / right / RightActivity.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
package org.litesoft.sandbox.multimodule.groupfront.client.right; import org.litesoft.sandbox.multimodule.foundation.client.*; import org.litesoft.sandbox.multimodule.foundation.client.places.*; import com.google.gwt.activity.shared.*; import com.google.gwt.event.shared.*; import com.google.gwt.place.shared.*; import com.google.gwt.user.client.ui.*; import org.litesoft.sandbox.anywhere.die.*; public class RightActivity extends AbstractActivity implements RightView.Presenter { private ClientFactory mClientFactory; private RightView mView; public RightActivity( ClientFactory pClientFactory, RightView pView, RightPlace pPlace ) { mClientFactory = pClientFactory; (mView = pView).setLuckyId( (pPlace != null) ? pPlace.getLuckyId() : null ); } @Override public void start( AcceptsOneWidget pPanel, EventBus pEventBus ) { mClientFactory.adjustDieFor( Places.Right ); mView.setPresenter( this ); pPanel.setWidget( mView.asWidget() ); } @Override public void onCancel() { super.onCancel(); //To change body of overridden methods use File | Settings | File Templates. } @Override public void onStop() { super.onStop(); //To change body of overridden methods use File | Settings | File Templates. } @Override public void goTo( Place place ) { mClientFactory.goTo( place ); } @Override public Die getDie() { return mClientFactory.getDie(); } } |