litesoft
Diff Revisions
748
vs
749
for /trunk/GWT_Sandbox/MultiModuleSingleSrc/main/src/org/litesoft/sandbox/multimodule/client/module/groupfront/right/RightActivity.java
|
@@ -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 RightActivity extends AbstractActivity implements RightView.Presenter |
|
8 |
+ |
public class RightActivity extends AbstractActivity<RightView> implements RightView.Presenter |
12 |
9 |
|
{ |
13 |
10 |
|
private ClientFactory mClientFactory; |
14 |
|
- |
private RightView mView; |
15 |
11 |
|
|
16 |
12 |
|
public RightActivity( ClientFactory pClientFactory, RightView pView, PlaceRight 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.Right ); |
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 |