litesoft
@ 568
litesoft / trunk / GWT_Sandbox / MultiModuleSingleSrc / groupBack / src / org / litesoft / sandbox / multimodule / groupback / client / GroupBack.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
package org.litesoft.sandbox.multimodule.groupback.client; import org.litesoft.sandbox.infrastructure.client.*; import org.litesoft.sandbox.multimodule.foundation.client.*; import org.litesoft.sandbox.multimodule.foundation.client.places.*; import org.litesoft.sandbox.multimodule.groupback.client.back.*; import org.litesoft.sandbox.multimodule.groupback.client.bottom.*; import org.litesoft.sandbox.multimodule.groupback.client.top.*; import com.google.gwt.core.client.*; /** * Entry point classes define <code>onModuleLoad()</code> */ public class GroupBack implements EntryPoint { @Override public void onModuleLoad() { System.out.println( "GroupBack.onModuleLoad" ); ActivityFactoryRegistry.register( new ActivityFactory.Asynchronous<ClientFactory, BackView, BackPlace>() { @Override public String getPlaceId() { return Places.Back.name(); } @Override public void load( ClientFactory pCommonActivityParam, final Callback<ClientFactory, BackView, BackPlace> pCallback ) { GWT.runAsync( new RunAsyncSyncActivityFactoryCallBack( getPlaceId(), pCommonActivityParam ) { @Override public void onSuccess() { pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, BackView, BackPlace>() { @Override public String getPlaceId() { return Places.Back.name(); } @Override public BackView createView() { return new BackViewImpl(); } @Override public Activity createActivity( ClientFactory pCommonActivityParam, BackView pView, BackPlace pPlace ) { return new BackActivity( pCommonActivityParam, pView, pPlace ); } } ); } } ); } } ); ActivityFactoryRegistry.register( new ActivityFactory.Asynchronous<ClientFactory, BottomView, BottomPlace>() { @Override public String getPlaceId() { return Places.Bottom.name(); } @Override public void load( ClientFactory pCommonActivityParam, final Callback<ClientFactory, BottomView, BottomPlace> pCallback ) { GWT.runAsync( new RunAsyncSyncActivityFactoryCallBack( getPlaceId(), pCommonActivityParam ) { @Override public void onSuccess() { pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, BottomView, BottomPlace>() { @Override public String getPlaceId() { return Places.Bottom.name(); } @Override public BottomView createView() { return new BottomViewImpl(); } @Override public Activity createActivity( ClientFactory pCommonActivityParam, BottomView pView, BottomPlace pPlace ) { return new BottomActivity( pCommonActivityParam, pView, pPlace ); } } ); } } ); } } ); ActivityFactoryRegistry.register( new ActivityFactory.Asynchronous<ClientFactory, TopView, TopPlace>() { @Override public String getPlaceId() { return Places.Top.name(); } @Override public void load( ClientFactory pCommonActivityParam, final Callback<ClientFactory, TopView, TopPlace> pCallback ) { GWT.runAsync( new RunAsyncSyncActivityFactoryCallBack( getPlaceId(), pCommonActivityParam ) { @Override public void onSuccess() { pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, TopView, TopPlace>() { @Override public String getPlaceId() { return Places.Top.name(); } @Override protected TopView createView() { return new TopViewImpl(); } @Override public Activity createActivity( ClientFactory pCommonActivityParam, TopView pView, TopPlace pPlace ) { return new TopActivity( pCommonActivityParam, pView, pPlace ); } } ); } } ); } } ); } } |
Commits for litesoft/trunk/GWT_Sandbox/MultiModuleSingleSrc/groupBack/src/org/litesoft/sandbox/multimodule/groupback/client/GroupBack.java
Revision | Author | Commited | Message |
---|---|---|---|
567 Diff | GeorgeS | Mon 14 Nov, 2011 16:10:59 +0000 | Single Src MultiModule |
548 Diff | GeorgeS | Mon 10 Oct, 2011 19:08:21 +0000 | |
547 Diff | GeorgeS | Mon 10 Oct, 2011 02:22:01 +0000 | |
543 Diff | GeorgeS | Fri 07 Oct, 2011 12:27:03 +0000 | |
540 Diff | GeorgeS | Mon 03 Oct, 2011 04:22:28 +0000 | |
512 Diff | GeorgeS | Mon 19 Sep, 2011 03:27:18 +0000 | |
503 | GeorgeS | Mon 12 Sep, 2011 05:29:58 +0000 |