|
@@ -1,5 +1,13 @@ |
1 |
1 |
|
package org.litesoft.sandbox.multimodule.groupfront.client; |
2 |
2 |
|
|
|
3 |
+ |
import org.litesoft.sandbox.multimodule.common.client.*; |
|
4 |
+ |
import org.litesoft.sandbox.multimodule.common.client.infrastructure.*; |
|
5 |
+ |
import org.litesoft.sandbox.multimodule.common.client.places.*; |
|
6 |
+ |
import org.litesoft.sandbox.multimodule.groupfront.client.front.*; |
|
7 |
+ |
import org.litesoft.sandbox.multimodule.groupfront.client.left.*; |
|
8 |
+ |
import org.litesoft.sandbox.multimodule.groupfront.client.right.*; |
|
9 |
+ |
|
|
10 |
+ |
import com.google.gwt.activity.shared.*; |
3 |
11 |
|
import com.google.gwt.core.client.*; |
4 |
12 |
|
|
5 |
13 |
|
/** |
|
@@ -11,5 +19,68 @@ |
11 |
19 |
|
public void onModuleLoad() |
12 |
20 |
|
{ |
13 |
21 |
|
System.out.println( "GroupFront.onModuleLoad" ); |
|
22 |
+ |
|
|
23 |
+ |
ActivityFactoryRegistry.register( new ActivityFactory.Synchronous<ClientFactory, FrontView, FrontPlace>() |
|
24 |
+ |
{ |
|
25 |
+ |
@Override |
|
26 |
+ |
public FrontView getView() |
|
27 |
+ |
{ |
|
28 |
+ |
return new FrontViewImpl(); |
|
29 |
+ |
} |
|
30 |
+ |
|
|
31 |
+ |
@Override |
|
32 |
+ |
public Activity createActivity( ClientFactory pClientFactory, FrontView pView, FrontPlace pPlace ) |
|
33 |
+ |
{ |
|
34 |
+ |
return new FrontActivity( pClientFactory, pView, pPlace ); |
|
35 |
+ |
} |
|
36 |
+ |
|
|
37 |
+ |
@Override |
|
38 |
+ |
public String getPlaceId() |
|
39 |
+ |
{ |
|
40 |
+ |
return Places.Front.name(); |
|
41 |
+ |
} |
|
42 |
+ |
} ); |
|
43 |
+ |
|
|
44 |
+ |
ActivityFactoryRegistry.register( new ActivityFactory.Synchronous<ClientFactory, LeftView, LeftPlace>() |
|
45 |
+ |
{ |
|
46 |
+ |
@Override |
|
47 |
+ |
public LeftView getView() |
|
48 |
+ |
{ |
|
49 |
+ |
return new LeftViewImpl(); |
|
50 |
+ |
} |
|
51 |
+ |
|
|
52 |
+ |
@Override |
|
53 |
+ |
public Activity createActivity( ClientFactory pClientFactory, LeftView pView, LeftPlace pPlace ) |
|
54 |
+ |
{ |
|
55 |
+ |
return new LeftActivity( pClientFactory, pView, pPlace ); |
|
56 |
+ |
} |
|
57 |
+ |
|
|
58 |
+ |
@Override |
|
59 |
+ |
public String getPlaceId() |
|
60 |
+ |
{ |
|
61 |
+ |
return Places.Left.name(); |
|
62 |
+ |
} |
|
63 |
+ |
} ); |
|
64 |
+ |
|
|
65 |
+ |
ActivityFactoryRegistry.register( new ActivityFactory.Synchronous<ClientFactory, RightView, RightPlace>() |
|
66 |
+ |
{ |
|
67 |
+ |
@Override |
|
68 |
+ |
public RightView getView() |
|
69 |
+ |
{ |
|
70 |
+ |
return new RightViewImpl(); |
|
71 |
+ |
} |
|
72 |
+ |
|
|
73 |
+ |
@Override |
|
74 |
+ |
public Activity createActivity( ClientFactory pClientFactory, RightView pView, RightPlace pPlace ) |
|
75 |
+ |
{ |
|
76 |
+ |
return new RightActivity( pClientFactory, pView, pPlace ); |
|
77 |
+ |
} |
|
78 |
+ |
|
|
79 |
+ |
@Override |
|
80 |
+ |
public String getPlaceId() |
|
81 |
+ |
{ |
|
82 |
+ |
return Places.Right.name(); |
|
83 |
+ |
} |
|
84 |
+ |
} ); |
14 |
85 |
|
} |
15 |
86 |
|
} |