litesoft
Diff Revisions
748
vs
749
for /trunk/GWT_Sandbox/MultiModuleSingleSrc/main/src/org/litesoft/sandbox/multimodule/client/module/groupback/back/BackActivity.java
|
@@ -2,35 +2,24 @@ |
2 |
2 |
|
|
3 |
3 |
|
import org.litesoft.GWT.client.pavsupport.*; |
4 |
4 |
|
import org.litesoft.sandbox.multimodule.anywhere.die.*; |
5 |
|
- |
import org.litesoft.sandbox.multimodule.client.foundation.support.*; |
6 |
5 |
|
import org.litesoft.sandbox.multimodule.client.foundation.places.*; |
|
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 BackActivity extends AbstractActivity implements BackView.Presenter |
|
8 |
+ |
public class BackActivity extends AbstractActivity<BackView> implements BackView.Presenter |
12 |
9 |
|
{ |
13 |
10 |
|
private ClientFactory mClientFactory; |
14 |
|
- |
private BackView mView; |
15 |
11 |
|
|
16 |
12 |
|
public BackActivity( ClientFactory pClientFactory, BackView pView, PlaceBack 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.Back ); |
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 |