Subversion Repository Public Repository

litesoft

Diff Revisions 748 vs 749 for /trunk/GWT_Sandbox/MultiModuleSingleSrc/main/src/org/litesoft/sandbox/multimodule/client/module/groupfront/front/FrontActivity.java

Diff revisions: vs.
  @@ -5,32 +5,21 @@
5 5 import org.litesoft.sandbox.multimodule.client.foundation.places.*;
6 6 import org.litesoft.sandbox.multimodule.client.foundation.support.*;
7 7
8 - import com.google.gwt.place.shared.*;
9 - import com.google.gwt.user.client.ui.*;
10 -
11 - public class FrontActivity extends AbstractActivity implements FrontView.Presenter
8 + public class FrontActivity extends AbstractActivity<FrontView> implements FrontView.Presenter
12 9 {
13 10 private ClientFactory mClientFactory;
14 - private FrontView mView;
15 11
16 12 public FrontActivity( ClientFactory pClientFactory, FrontView pView, PlaceFront pPlace )
17 13 {
14 + super( pView, pClientFactory );
18 15 mClientFactory = pClientFactory;
19 - (mView = pView).setLuckyId( (pPlace != null) ? pPlace.getLuckyId() : null );
16 + pView.setLuckyId( (pPlace != null) ? pPlace.getLuckyId() : null );
20 17 }
21 18
22 19 @Override
23 - public void start( AcceptsOneWidget pPanel )
20 + protected void start()
24 21 {
25 22 mClientFactory.adjustDieFor( EnumPlaces.Front );
26 - mView.setPresenter( this );
27 - pPanel.setWidget( mView.asWidget() );
28 - }
29 -
30 - @Override
31 - public void goTo( Place place )
32 - {
33 - mClientFactory.goForwardTo( place );
34 23 }
35 24
36 25 @Override