litesoft
@ 713
litesoft / trunk / GWT_Sandbox / MultiModuleSingleSrc / main / src / org / litesoft / sandbox / multimodule / client / module / groupfront / front / FrontActivity.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 |
package org.litesoft.sandbox.multimodule.client.module.groupfront.front; import org.litesoft.GWT.client.pavsupport.*; import org.litesoft.sandbox.multimodule.anywhere.die.*; import org.litesoft.sandbox.multimodule.client.foundation.places.*; import org.litesoft.sandbox.multimodule.client.foundation.support.*; import com.google.gwt.place.shared.*; import com.google.gwt.user.client.ui.*; public class FrontActivity extends AbstractActivity implements FrontView.Presenter { private ClientFactory mClientFactory; private FrontView mView; public FrontActivity( ClientFactory pClientFactory, FrontView pView, PlaceFront pPlace ) { mClientFactory = pClientFactory; (mView = pView).setLuckyId( (pPlace != null) ? pPlace.getLuckyId() : null ); } @Override public void start( AcceptsOneWidget pPanel ) { mClientFactory.adjustDieFor( EnumPlaces.Front ); mView.setPresenter( this ); pPanel.setWidget( mView.asWidget() ); } @Override public void goTo( Place place ) { mClientFactory.goTo( place ); } @Override public Die getDie() { return mClientFactory.getDie(); } } |