litesoft
Diff Revisions
748
vs
749
for /trunk/GWT_Sandbox/MultiModuleSingleSrc/main/src/org/litesoft/sandbox/multimodule/client/main/home/HomeViewImpl.java
|
@@ -2,23 +2,25 @@ |
2 |
2 |
|
|
3 |
3 |
|
import java.util.*; |
4 |
4 |
|
|
|
5 |
+ |
import org.litesoft.GWT.client.pavsupport.*; |
5 |
6 |
|
import org.litesoft.GWT.client.util.*; |
6 |
7 |
|
import org.litesoft.GWT.client.util.externalization.*; |
|
8 |
+ |
import org.litesoft.core.util.externalization.*; |
7 |
9 |
|
import org.litesoft.sandbox.multimodule.client.foundation.places.*; |
8 |
10 |
|
import org.litesoft.sandbox.multimodule.client.foundation.support.*; |
9 |
11 |
|
|
10 |
12 |
|
import com.google.gwt.event.dom.client.*; |
11 |
13 |
|
import com.google.gwt.user.client.ui.*; |
12 |
14 |
|
|
13 |
|
- |
public class HomeViewImpl implements HomeView, |
14 |
|
- |
FaceSwitcher |
|
15 |
+ |
public class HomeViewImpl extends AbstractViewImpl<HomeView.Presenter> implements HomeView, |
|
16 |
+ |
FaceSwitcher |
15 |
17 |
|
{ |
16 |
18 |
|
private final List<Widget> mButtons = new ArrayList<Widget>(); |
17 |
19 |
|
private final Widget mAsWidget; |
18 |
|
- |
private Presenter mPresenter; |
19 |
20 |
|
|
20 |
|
- |
public HomeViewImpl() |
|
21 |
+ |
public HomeViewImpl( E13nResolver pResolver ) |
21 |
22 |
|
{ |
|
23 |
+ |
super( pResolver ); |
22 |
24 |
|
Grid zPanel = new Grid( 6, 3 ) |
23 |
25 |
|
{ |
24 |
26 |
|
@Override |
|
@@ -61,12 +63,6 @@ |
61 |
63 |
|
} |
62 |
64 |
|
|
63 |
65 |
|
@Override |
64 |
|
- |
public void setPresenter( Presenter pPresenter ) |
65 |
|
- |
{ |
66 |
|
- |
mPresenter = pPresenter; |
67 |
|
- |
} |
68 |
|
- |
|
69 |
|
- |
@Override |
70 |
66 |
|
public Widget asWidget() |
71 |
67 |
|
{ |
72 |
68 |
|
return mAsWidget; |
|
@@ -75,7 +71,7 @@ |
75 |
71 |
|
@Override |
76 |
72 |
|
public void switchTo( EnumPlaces pPlace ) |
77 |
73 |
|
{ |
78 |
|
- |
mPresenter.goTo( EnumPlaces.createPlace( pPlace, null ) ); |
|
74 |
+ |
mPresenter.goForwardTo( EnumPlaces.createPlace( pPlace, null ) ); |
79 |
75 |
|
// System.out.println( "HomeViewImpl.switchTo: " + mSample.locale() ); |
80 |
76 |
|
// System.out.println( " helloWorld: " + mSample.getString( "helloWorld" ) ); |
81 |
77 |
|
// System.out.println( " goodbyeWorld: " + mSample.getString( "goodbyeWorld" ) ); |