Subversion Repository Public Repository

litesoft

Diff Revisions 551 vs 585 for /trunk/GWT_Sandbox/MultiModule/groupFront/src/org/litesoft/sandbox/multimodule/groupfront/client/GroupFront.java

Diff revisions: vs.
  @@ -19,15 +19,9 @@
19 19 {
20 20 System.out.println( "GroupFront.onModuleLoad" );
21 21
22 - ActivityFactoryRegistry.register( new ActivityFactory.Asynchronous<ClientFactory, FrontView, FrontPlace>()
22 + ActivityFactoryRegistry.register( new AbstractAsyncActivityFactory<ClientFactory, FrontView, FrontPlace>( Places.Front )
23 23 {
24 24 @Override
25 - public String getPlaceId()
26 - {
27 - return Places.Front.name();
28 - }
29 -
30 - @Override
31 25 public void load( ClientFactory pCommonActivityParam, final Callback<ClientFactory, FrontView, FrontPlace> pCallback )
32 26 {
33 27 GWT.runAsync( new RunAsyncSyncActivityFactoryCallBack( getPlaceId(), pCommonActivityParam )
  @@ -35,15 +29,8 @@
35 29 @Override
36 30 public void onSuccess()
37 31 {
38 - pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, FrontView, FrontPlace>()
32 + pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, FrontView, FrontPlace>( getPlaceId() )
39 33 {
40 -
41 - @Override
42 - public String getPlaceId()
43 - {
44 - return Places.Front.name();
45 - }
46 -
47 34 @Override
48 35 public FrontView createView()
49 36 {
  @@ -61,15 +48,9 @@
61 48 }
62 49 } );
63 50
64 - ActivityFactoryRegistry.register( new ActivityFactory.Asynchronous<ClientFactory, LeftView, LeftPlace>()
51 + ActivityFactoryRegistry.register( new AbstractAsyncActivityFactory<ClientFactory, LeftView, LeftPlace>( Places.Left )
65 52 {
66 53 @Override
67 - public String getPlaceId()
68 - {
69 - return Places.Left.name();
70 - }
71 -
72 - @Override
73 54 public void load( ClientFactory pCommonActivityParam, final Callback<ClientFactory, LeftView, LeftPlace> pCallback )
74 55 {
75 56 GWT.runAsync( new RunAsyncSyncActivityFactoryCallBack( getPlaceId(), pCommonActivityParam )
  @@ -77,15 +58,9 @@
77 58 @Override
78 59 public void onSuccess()
79 60 {
80 - pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, LeftView, LeftPlace>()
61 + pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, LeftView, LeftPlace>( getPlaceId() )
81 62 {
82 63 @Override
83 - public String getPlaceId()
84 - {
85 - return Places.Left.name();
86 - }
87 -
88 - @Override
89 64 public LeftView createView()
90 65 {
91 66 return new LeftViewImpl();
  @@ -102,15 +77,9 @@
102 77 }
103 78 } );
104 79
105 - ActivityFactoryRegistry.register( new ActivityFactory.Asynchronous<ClientFactory, RightView, RightPlace>()
80 + ActivityFactoryRegistry.register( new AbstractAsyncActivityFactory<ClientFactory, RightView, RightPlace>( Places.Right )
106 81 {
107 82 @Override
108 - public String getPlaceId()
109 - {
110 - return Places.Right.name();
111 - }
112 -
113 - @Override
114 83 public void load( ClientFactory pCommonActivityParam, final Callback<ClientFactory, RightView, RightPlace> pCallback )
115 84 {
116 85 GWT.runAsync( new RunAsyncSyncActivityFactoryCallBack( getPlaceId(), pCommonActivityParam )
  @@ -118,15 +87,9 @@
118 87 @Override
119 88 public void onSuccess()
120 89 {
121 - pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, RightView, RightPlace>()
90 + pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, RightView, RightPlace>( getPlaceId() )
122 91 {
123 92 @Override
124 - public String getPlaceId()
125 - {
126 - return Places.Right.name();
127 - }
128 -
129 - @Override
130 93 public RightView createView()
131 94 {
132 95 return new RightViewImpl();