litesoft
Diff Revisions
728
vs
749
for /trunk/GWT_Sandbox/MultiModuleSingleSrc/main/src/org/litesoft/sandbox/multimodule/client/main/home/HomeActivity.java
|
@@ -4,31 +4,16 @@ |
4 |
4 |
|
import org.litesoft.sandbox.multimodule.client.foundation.places.*; |
5 |
5 |
|
import org.litesoft.sandbox.multimodule.client.foundation.support.*; |
6 |
6 |
|
|
7 |
|
- |
import com.google.gwt.place.shared.*; |
8 |
|
- |
import com.google.gwt.user.client.ui.*; |
9 |
|
- |
|
10 |
|
- |
public class HomeActivity extends AbstractActivity implements HomeView.Presenter |
|
7 |
+ |
public class HomeActivity extends AbstractActivity<HomeView> implements HomeView.Presenter |
11 |
8 |
|
{ |
12 |
|
- |
private ClientFactory mClientFactory; |
13 |
|
- |
private HomeView mView; |
14 |
|
- |
|
15 |
9 |
|
@SuppressWarnings({"UnusedParameters"}) |
16 |
10 |
|
public HomeActivity( ClientFactory pClientFactory, HomeView pView, PlaceHome pPlace ) // pPlace not currently being used, but kept for API consistency |
17 |
11 |
|
{ |
18 |
|
- |
mClientFactory = pClientFactory; |
19 |
|
- |
mView = pView; |
20 |
|
- |
} |
21 |
|
- |
|
22 |
|
- |
@Override |
23 |
|
- |
public void start( AcceptsOneWidget pPanel ) |
24 |
|
- |
{ |
25 |
|
- |
mView.setPresenter( this ); |
26 |
|
- |
pPanel.setWidget( mView.asWidget() ); |
|
12 |
+ |
super( pView, pClientFactory ); |
27 |
13 |
|
} |
28 |
14 |
|
|
29 |
15 |
|
@Override |
30 |
|
- |
public void goTo( Place place ) |
|
16 |
+ |
protected void start() |
31 |
17 |
|
{ |
32 |
|
- |
mClientFactory.goForwardTo( place ); |
33 |
18 |
|
} |
34 |
19 |
|
} |