litesoft
Diff Revisions
511
vs
512
for /trunk/GWT_Sandbox/MultiModule/groupBack/src/org/litesoft/sandbox/multimodule/groupback/client/GroupBack.java
|
@@ -1,5 +1,13 @@ |
1 |
1 |
|
package org.litesoft.sandbox.multimodule.groupback.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.groupback.client.back.*; |
|
7 |
+ |
import org.litesoft.sandbox.multimodule.groupback.client.bottom.*; |
|
8 |
+ |
import org.litesoft.sandbox.multimodule.groupback.client.top.*; |
|
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( "GroupBack.onModuleLoad" ); |
|
22 |
+ |
|
|
23 |
+ |
ActivityFactoryRegistry.register( new ActivityFactory.Synchronous<ClientFactory, BackView, BackPlace>() |
|
24 |
+ |
{ |
|
25 |
+ |
@Override |
|
26 |
+ |
public BackView getView() |
|
27 |
+ |
{ |
|
28 |
+ |
return new BackViewImpl(); |
|
29 |
+ |
} |
|
30 |
+ |
|
|
31 |
+ |
@Override |
|
32 |
+ |
public Activity createActivity( ClientFactory pClientFactory, BackView pView, BackPlace pPlace ) |
|
33 |
+ |
{ |
|
34 |
+ |
return new BackActivity( pClientFactory, pView, pPlace ); |
|
35 |
+ |
} |
|
36 |
+ |
|
|
37 |
+ |
@Override |
|
38 |
+ |
public String getPlaceId() |
|
39 |
+ |
{ |
|
40 |
+ |
return Places.Back.name(); |
|
41 |
+ |
} |
|
42 |
+ |
} ); |
|
43 |
+ |
|
|
44 |
+ |
ActivityFactoryRegistry.register( new ActivityFactory.Synchronous<ClientFactory, BottomView, BottomPlace>() |
|
45 |
+ |
{ |
|
46 |
+ |
@Override |
|
47 |
+ |
public BottomView getView() |
|
48 |
+ |
{ |
|
49 |
+ |
return new BottomViewImpl(); |
|
50 |
+ |
} |
|
51 |
+ |
|
|
52 |
+ |
@Override |
|
53 |
+ |
public Activity createActivity( ClientFactory pClientFactory, BottomView pView, BottomPlace pPlace ) |
|
54 |
+ |
{ |
|
55 |
+ |
return new BottomActivity( pClientFactory, pView, pPlace ); |
|
56 |
+ |
} |
|
57 |
+ |
|
|
58 |
+ |
@Override |
|
59 |
+ |
public String getPlaceId() |
|
60 |
+ |
{ |
|
61 |
+ |
return Places.Bottom.name(); |
|
62 |
+ |
} |
|
63 |
+ |
} ); |
|
64 |
+ |
|
|
65 |
+ |
ActivityFactoryRegistry.register( new ActivityFactory.Synchronous<ClientFactory, TopView, TopPlace>() |
|
66 |
+ |
{ |
|
67 |
+ |
@Override |
|
68 |
+ |
public TopView getView() |
|
69 |
+ |
{ |
|
70 |
+ |
return new TopViewImpl(); |
|
71 |
+ |
} |
|
72 |
+ |
|
|
73 |
+ |
@Override |
|
74 |
+ |
public Activity createActivity( ClientFactory pClientFactory, TopView pView, TopPlace pPlace ) |
|
75 |
+ |
{ |
|
76 |
+ |
return new TopActivity( pClientFactory, pView, pPlace ); |
|
77 |
+ |
} |
|
78 |
+ |
|
|
79 |
+ |
@Override |
|
80 |
+ |
public String getPlaceId() |
|
81 |
+ |
{ |
|
82 |
+ |
return Places.Top.name(); |
|
83 |
+ |
} |
|
84 |
+ |
} ); |
14 |
85 |
|
} |
15 |
86 |
|
} |