|
@@ -12,34 +12,25 @@ |
12 |
12 |
|
/** |
13 |
13 |
|
* Entry point classes define <code>onModuleLoad()</code> |
14 |
14 |
|
*/ |
15 |
|
- |
public class GroupFront implements EntryPoint |
16 |
|
- |
{ |
|
15 |
+ |
public class GroupFront implements EntryPoint { |
17 |
16 |
|
@Override |
18 |
|
- |
public void onModuleLoad() |
19 |
|
- |
{ |
|
17 |
+ |
public void onModuleLoad() { |
20 |
18 |
|
System.out.println( "GroupFront.onModuleLoad" ); |
21 |
19 |
|
|
22 |
|
- |
ActivityFactoryRegistry.register( new AbstractAsyncActivityFactory<ClientFactory, FrontView, PlaceFront>( EnumPlaces.Front ) |
23 |
|
- |
{ |
|
20 |
+ |
ActivityFactoryRegistry.register( new AbstractAsyncActivityFactory<ClientFactory, FrontView, PlaceFront>( EnumPlaces.Front ) { |
24 |
21 |
|
@Override |
25 |
|
- |
public void load( ClientFactory pCommonActivityParam, final Callback<ClientFactory, FrontView, PlaceFront> pCallback ) |
26 |
|
- |
{ |
27 |
|
- |
GWT.runAsync( new RunAsyncSyncActivityFactoryCallBack( getPlaceId(), pCommonActivityParam ) |
28 |
|
- |
{ |
|
22 |
+ |
public void load( ClientFactory pCommonActivityParam, final Callback<ClientFactory, FrontView, PlaceFront> pCallback ) { |
|
23 |
+ |
GWT.runAsync( new RunAsyncSyncActivityFactoryCallBack( getPlaceId(), pCommonActivityParam ) { |
29 |
24 |
|
@Override |
30 |
|
- |
public void onSuccess() |
31 |
|
- |
{ |
32 |
|
- |
pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, FrontView, PlaceFront>( getPlaceId() ) |
33 |
|
- |
{ |
|
25 |
+ |
public void onSuccess() { |
|
26 |
+ |
pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, FrontView, PlaceFront>( getPlaceId() ) { |
34 |
27 |
|
@Override |
35 |
|
- |
public FrontView createView() |
36 |
|
- |
{ |
|
28 |
+ |
public FrontView createView() { |
37 |
29 |
|
return new FrontViewImpl(); |
38 |
30 |
|
} |
39 |
31 |
|
|
40 |
32 |
|
@Override |
41 |
|
- |
public Activity createActivity( ClientFactory pCommonActivityParam, FrontView pView, PlaceFront pPlace ) |
42 |
|
- |
{ |
|
33 |
+ |
public Activity createActivity( ClientFactory pCommonActivityParam, FrontView pView, PlaceFront pPlace ) { |
43 |
34 |
|
return new FrontActivity( pCommonActivityParam, pView, pPlace ); |
44 |
35 |
|
} |
45 |
36 |
|
} ); |
|
@@ -48,27 +39,20 @@ |
48 |
39 |
|
} |
49 |
40 |
|
} ); |
50 |
41 |
|
|
51 |
|
- |
ActivityFactoryRegistry.register( new AbstractAsyncActivityFactory<ClientFactory, LeftView, PlaceLeft>( EnumPlaces.Left ) |
52 |
|
- |
{ |
|
42 |
+ |
ActivityFactoryRegistry.register( new AbstractAsyncActivityFactory<ClientFactory, LeftView, PlaceLeft>( EnumPlaces.Left ) { |
53 |
43 |
|
@Override |
54 |
|
- |
public void load( ClientFactory pCommonActivityParam, final Callback<ClientFactory, LeftView, PlaceLeft> pCallback ) |
55 |
|
- |
{ |
56 |
|
- |
GWT.runAsync( new RunAsyncSyncActivityFactoryCallBack( getPlaceId(), pCommonActivityParam ) |
57 |
|
- |
{ |
|
44 |
+ |
public void load( ClientFactory pCommonActivityParam, final Callback<ClientFactory, LeftView, PlaceLeft> pCallback ) { |
|
45 |
+ |
GWT.runAsync( new RunAsyncSyncActivityFactoryCallBack( getPlaceId(), pCommonActivityParam ) { |
58 |
46 |
|
@Override |
59 |
|
- |
public void onSuccess() |
60 |
|
- |
{ |
61 |
|
- |
pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, LeftView, PlaceLeft>( getPlaceId() ) |
62 |
|
- |
{ |
|
47 |
+ |
public void onSuccess() { |
|
48 |
+ |
pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, LeftView, PlaceLeft>( getPlaceId() ) { |
63 |
49 |
|
@Override |
64 |
|
- |
public LeftView createView() |
65 |
|
- |
{ |
|
50 |
+ |
public LeftView createView() { |
66 |
51 |
|
return new LeftViewImpl(); |
67 |
52 |
|
} |
68 |
53 |
|
|
69 |
54 |
|
@Override |
70 |
|
- |
public Activity createActivity( ClientFactory pCommonActivityParam, LeftView pView, PlaceLeft pPlace ) |
71 |
|
- |
{ |
|
55 |
+ |
public Activity createActivity( ClientFactory pCommonActivityParam, LeftView pView, PlaceLeft pPlace ) { |
72 |
56 |
|
return new LeftActivity( pCommonActivityParam, pView, pPlace ); |
73 |
57 |
|
} |
74 |
58 |
|
} ); |
|
@@ -77,27 +61,20 @@ |
77 |
61 |
|
} |
78 |
62 |
|
} ); |
79 |
63 |
|
|
80 |
|
- |
ActivityFactoryRegistry.register( new AbstractAsyncActivityFactory<ClientFactory, RightView, PlaceRight>( EnumPlaces.Right ) |
81 |
|
- |
{ |
|
64 |
+ |
ActivityFactoryRegistry.register( new AbstractAsyncActivityFactory<ClientFactory, RightView, PlaceRight>( EnumPlaces.Right ) { |
82 |
65 |
|
@Override |
83 |
|
- |
public void load( ClientFactory pCommonActivityParam, final Callback<ClientFactory, RightView, PlaceRight> pCallback ) |
84 |
|
- |
{ |
85 |
|
- |
GWT.runAsync( new RunAsyncSyncActivityFactoryCallBack( getPlaceId(), pCommonActivityParam ) |
86 |
|
- |
{ |
|
66 |
+ |
public void load( ClientFactory pCommonActivityParam, final Callback<ClientFactory, RightView, PlaceRight> pCallback ) { |
|
67 |
+ |
GWT.runAsync( new RunAsyncSyncActivityFactoryCallBack( getPlaceId(), pCommonActivityParam ) { |
87 |
68 |
|
@Override |
88 |
|
- |
public void onSuccess() |
89 |
|
- |
{ |
90 |
|
- |
pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, RightView, PlaceRight>( getPlaceId() ) |
91 |
|
- |
{ |
|
69 |
+ |
public void onSuccess() { |
|
70 |
+ |
pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, RightView, PlaceRight>( getPlaceId() ) { |
92 |
71 |
|
@Override |
93 |
|
- |
public RightView createView() |
94 |
|
- |
{ |
|
72 |
+ |
public RightView createView() { |
95 |
73 |
|
return new RightViewImpl(); |
96 |
74 |
|
} |
97 |
75 |
|
|
98 |
76 |
|
@Override |
99 |
|
- |
public Activity createActivity( ClientFactory pCommonActivityParam, RightView pView, PlaceRight pPlace ) |
100 |
|
- |
{ |
|
77 |
+ |
public Activity createActivity( ClientFactory pCommonActivityParam, RightView pView, PlaceRight pPlace ) { |
101 |
78 |
|
return new RightActivity( pCommonActivityParam, pView, pPlace ); |
102 |
79 |
|
} |
103 |
80 |
|
} ); |