litesoft
Diff Revisions
947
vs
948
for /trunk/GWT_Sandbox/MultiModule/main/src/org/litesoft/sandbox/multimodule/main/client/home/HomeViewImpl.java
|
@@ -10,18 +10,15 @@ |
10 |
10 |
|
import java.util.*; |
11 |
11 |
|
|
12 |
12 |
|
public class HomeViewImpl implements HomeView, |
13 |
|
- |
FaceSwitcher |
14 |
|
- |
{ |
|
13 |
+ |
FaceSwitcher { |
15 |
14 |
|
private final List<Widget> mButtons = new ArrayList<Widget>(); |
16 |
15 |
|
private final Widget mAsWidget; |
17 |
16 |
|
private Presenter mPresenter; |
18 |
17 |
|
|
19 |
|
- |
public HomeViewImpl() |
20 |
|
- |
{ |
21 |
|
- |
Grid zPanel = new Grid( 4, 3 ){ |
|
18 |
+ |
public HomeViewImpl() { |
|
19 |
+ |
Grid zPanel = new Grid( 4, 3 ) { |
22 |
20 |
|
@Override |
23 |
|
- |
protected void onAttach() |
24 |
|
- |
{ |
|
21 |
+ |
protected void onAttach() { |
25 |
22 |
|
super.onAttach(); |
26 |
23 |
|
SameSize.these( mButtons ); |
27 |
24 |
|
} |
|
@@ -41,13 +38,10 @@ |
41 |
38 |
|
mAsWidget = zPanel; |
42 |
39 |
|
} |
43 |
40 |
|
|
44 |
|
- |
private Widget createButton( final Places pPlaceId ) |
45 |
|
- |
{ |
46 |
|
- |
Button zButton = new Button( pPlaceId.name(), new ClickHandler() |
47 |
|
- |
{ |
|
41 |
+ |
private Widget createButton( final Places pPlaceId ) { |
|
42 |
+ |
Button zButton = new Button( pPlaceId.name(), new ClickHandler() { |
48 |
43 |
|
@Override |
49 |
|
- |
public void onClick( ClickEvent event ) |
50 |
|
- |
{ |
|
44 |
+ |
public void onClick( ClickEvent event ) { |
51 |
45 |
|
switchTo( pPlaceId ); |
52 |
46 |
|
} |
53 |
47 |
|
} ); |
|
@@ -56,20 +50,17 @@ |
56 |
50 |
|
} |
57 |
51 |
|
|
58 |
52 |
|
@Override |
59 |
|
- |
public void setPresenter( Presenter pPresenter ) |
60 |
|
- |
{ |
|
53 |
+ |
public void setPresenter( Presenter pPresenter ) { |
61 |
54 |
|
mPresenter = pPresenter; |
62 |
55 |
|
} |
63 |
56 |
|
|
64 |
57 |
|
@Override |
65 |
|
- |
public Widget asWidget() |
66 |
|
- |
{ |
|
58 |
+ |
public Widget asWidget() { |
67 |
59 |
|
return mAsWidget; |
68 |
60 |
|
} |
69 |
61 |
|
|
70 |
62 |
|
@Override |
71 |
|
- |
public void switchTo( Places pPlace ) |
72 |
|
- |
{ |
|
63 |
+ |
public void switchTo( Places pPlace ) { |
73 |
64 |
|
mPresenter.goTo( PlacesSupport.createPlace( pPlace, null ) ); |
74 |
65 |
|
// System.out.println( "HomeViewImpl.switchTo: " + mSample.locale() ); |
75 |
66 |
|
// System.out.println( " helloWorld: " + mSample.getString( "helloWorld" ) ); |