litesoft
Diff Revisions
547
vs
548
for /trunk/GWT_Sandbox/MultiModule/main/src/org/litesoft/sandbox/multimodule/main/client/Main.java
|
@@ -1,7 +1,10 @@ |
1 |
1 |
|
package org.litesoft.sandbox.multimodule.main.client; |
2 |
2 |
|
|
3 |
3 |
|
import org.litesoft.sandbox.infrastructure.client.*; |
|
4 |
+ |
import org.litesoft.sandbox.infrastructure.client.widgets.*; |
4 |
5 |
|
import org.litesoft.sandbox.multimodule.foundation.client.*; |
|
6 |
+ |
import org.litesoft.sandbox.multimodule.foundation.client.places.*; |
|
7 |
+ |
import org.litesoft.sandbox.multimodule.main.client.home.*; |
5 |
8 |
|
|
6 |
9 |
|
import com.google.gwt.core.client.*; |
7 |
10 |
|
import com.google.gwt.user.client.ui.*; |
|
@@ -15,6 +18,28 @@ |
15 |
18 |
|
public void onModuleLoad() |
16 |
19 |
|
{ |
17 |
20 |
|
System.out.println( "Main.onModuleLoad" ); |
|
21 |
+ |
|
|
22 |
+ |
ActivityFactoryRegistry.register( new CachedViewSynchronousActivityFactory<ClientFactory, HomeView, HomePlace>() |
|
23 |
+ |
{ |
|
24 |
+ |
@Override |
|
25 |
+ |
public HomeView createView() |
|
26 |
+ |
{ |
|
27 |
+ |
return new HomeViewImpl(); |
|
28 |
+ |
} |
|
29 |
+ |
|
|
30 |
+ |
@Override |
|
31 |
+ |
public Activity createActivity( ClientFactory pCommonActivityParam, HomeView pView, HomePlace pPlace ) |
|
32 |
+ |
{ |
|
33 |
+ |
return new HomeActivity( pCommonActivityParam, pView, pPlace ); |
|
34 |
+ |
} |
|
35 |
+ |
|
|
36 |
+ |
@Override |
|
37 |
+ |
public String getPlaceId() |
|
38 |
+ |
{ |
|
39 |
+ |
return Places.Home.name(); |
|
40 |
+ |
} |
|
41 |
+ |
} ); |
|
42 |
+ |
|
18 |
43 |
|
|
19 |
44 |
|
OurLabel zMessageUserSinkLabel = new OurLabel(); |
20 |
45 |
|
SimplePanel zAppWidget = new SimplePanel(); |